Skip to content
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

Make the RNG fall back to using an algorithm handle if BCryptGenRandom fails #330

Closed
wants to merge 1 commit into from

Conversation

badboy
Copy link

@badboy badboy commented Jan 11, 2023

Based on rust-lang/rust#102044


Adresses #314, replaces #318

This doesn't have a fast-path to avoid BCryptGenRandom if it is known to fail.
Thus this is probably gonna get expensive for some users, I can add some fast-path though.
Right now I don't have a Windows machine to actually test it on (but CI should do that, I also have acess to a machine again next week).
I'm not 100% sure yet that it fixes the crashes we see on Firefox, but given the stdlib switched to a similar solution I have hopes.

@josephlr
Copy link
Member

Closing, we went with a different approach in #337

@josephlr josephlr closed this Feb 22, 2023
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.

None yet

2 participants