Skip to main content

fill_random

Function fill_random 

Source
pub fn fill_random(buf: &mut [u8])
Expand description

Fill buf with cryptographically secure random bytes.

Panics if the OS RNG is unavailable (this should never happen in practice).