Module nanorand::entropy [−][src]
Expand description
Sources for obtaining entropy.
Functions
A backup entropy source, trying rdseed first, and if it fails or does not complete, combining it with or using system time-based entropy generation.
An rdseed-based entropy source.
Only works on x86/x86_64 platforms where the rdseed
instructions are available.
Returns None
if rdseed
is not available.
Returns Some
if it successfully managed to pull some bytes.
VERY unreliable.
Pull in system entropy using the getrandom
crate.
Uses backup entropy (rdseed and system time) if it fails.