-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(node/crypto): port polyfill to Rust for randomInt, randomFill, randomFillSync #18658
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Let's fix formatting and linting problems and see if the tests are passing fine
06c8139
to
7423a1d
Compare
9ef1ba8
to
d5a670c
Compare
d5a670c
to
cd806c2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Out of curiosity, shouldn't these be generated by a CSPRNG? or at least by |
We're using |
@sepehrst |
I was reading https://rust-random.github.io/book/guide-rngs.html#state-and-seeding and just missed the mention of |
…l, randomFillSync (#18658) Pretty much as per the title, I'd welcome some feedback especially around the array/buffer handling in the two randomFill functions.
Pretty much as per the title, I'd welcome some feedback especially around the
array/buffer handling in the two randomFill functions.