-
Notifications
You must be signed in to change notification settings - Fork 43
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
provide new generators: urandom and getentropy #250
base: main
Are you sure you want to change the base?
Conversation
There's the question how to annotate Fortuna to be racy. Should there be an |
Provide guidance to use these by default, document that Fortuna is not thread-safe. As suggested in mirage#249
74690df
to
f6bf346
Compare
Co-authored-by: Reynir Björnsson <[email protected]>
Co-authored-by: Reynir Björnsson <[email protected]>
The failure semantics is now a bit sad: if for some reason the fd that has /dev/urandom open isn't able to read, we'll end up in an exception. previously with fortuna we were sure that once it is seeded, we'll never fail... but i guess if /dev/urandom doesn't deliver anymore we have other problems, and it's fine to raise an exception. |
since the pfortuna benchmark has been moved to bench/speed, remove bench/miou Mirage_crypto_rng_unix: remove getrandom_into
I think this is fine to merge now. |
to fix #249