[−][src]Function nanorand::entropy::rdseed_entropy
pub fn rdseed_entropy(amt: usize) -> Option<Result<Vec<u8>, Vec<u8>>>
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 Ok
if it sucesfully managed to pull the requested amount of bytes.
Returns Err
if it couldn't pull the requested amount of bytes.
VERY unreliable.