[][src]Function nanorand::entropy::unix::entropy_from_system

pub fn entropy_from_system(amt: usize) -> Vec<u8>

Obtain a series of random bytes.
Sources (in order of priority):

  1. /dev/urandom
  2. /dev/random
  3. rdseed (if available)
  4. The emergency time-based entropy source.