pub fn random_bytes(buf: &mut [u8]) -> Result<()>
Fill buf with cryptographically secure random bytes (ring SystemRandom).
buf
SystemRandom
Returns Error::Rng if the system RNG fails.
Error::Rng