Skip to main content

random_bytes

Function random_bytes 

Source
pub fn random_bytes(buf: &mut [u8]) -> Result<()>
Expand description

Fill buf with cryptographically secure random bytes (ring SystemRandom).

ยงErrors

Returns Error::Rng if the system RNG fails.