-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add support for rdrand Ivy Bridge instruction #5857
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
Comments
visited for bug triage on 2013 july 2. |
I'm going to include this as part of my |
@huonw Did this end up landing yet? |
Not yet. |
I'm not entirely sure we should just defer random number generation to hw. The linux kernel at least does not trust it, and just uses it as one entropy source of many. |
@brson I agree in light of the recent NSA + RDRAND scandal & the linux kernel's opinion of it. We can just defer to the OS for "strong" random numbers and let it decide about the quality of whatever sources of randomness it has, so we don't have to keep up with which vendors have trustworthy CPU RNGs etc. (FWIW, I tried implemented this, but I never quite got the Closing this as wontfix, feel free to reopen if someone really thinks this is necessary. |
try_err: Consider Try impl for Poll when generating suggestions There are two different implementation of `Try` trait for `Poll` type: `Poll<Result<T, E>>` and `Poll<Option<Result<T, E>>>`. Take them into account when generating suggestions. For example, for `Err(e)?` suggest either `return Poll::Ready(Err(e))` or `return Poll::Ready(Some(Err(e)))` as appropriate. Fixes rust-lang#5855 changelog: try_err: Consider Try impl for Poll when generating suggestions
When running on Ivy Bridge chips our rand module can just defer to the dedicated random number generator.
The text was updated successfully, but these errors were encountered: