Skip to content

Replace bundling crypto with specific randomfill package. Fixes #161#162

Merged
cereallarceny merged 1 commit intomasterfrom
fix/randomfill
Jun 15, 2020
Merged

Replace bundling crypto with specific randomfill package. Fixes #161#162
cereallarceny merged 1 commit intomasterfrom
fix/randomfill

Conversation

@vvmnnnkv
Copy link
Member

Description

For some reason crypto from rollup-plugin-node-builtins doesn't bundle properly.
The fix is to use specific package randomfill (in speed-test.js) that we need instead of whole crypto.
Fixes #161

Affected Dependencies

n/a

How has this been tested?

Bundled syft.js and used it from mnist example, to test there's no error.

Checklist

@vvmnnnkv vvmnnnkv requested a review from cereallarceny June 15, 2020 13:48
@cereallarceny cereallarceny merged commit 196297a into master Jun 15, 2020
@delete-merged-branch delete-merged-branch bot deleted the fix/randomfill branch June 15, 2020 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uncaught TypeError: Cannot read property 'randomBytes' of undefined

2 participants