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

If rand::OsRng fails, switch to EntropyRng (potential sidedoor) #28

Open
samyk opened this issue May 19, 2019 · 0 comments
Open

If rand::OsRng fails, switch to EntropyRng (potential sidedoor) #28

samyk opened this issue May 19, 2019 · 0 comments

Comments

@samyk
Copy link

samyk commented May 19, 2019

oee/oee.rs

Line 36 in 6bb7cdf

let mut csprng = match rand::OsRng::new() {

Potential sidedoor revealed.

"You may prefer to use EntropyRng instead of OsRng. Is is unlikely, but not entirely theoretical, for OsRng to fail. In such cases EntropyRng falls back on a good alternative entropy source."
https://docs.rs/rand/0.5.0-pre.0/rand/os/index.html

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

No branches or pull requests

1 participant