Skip to main content

fill

Function fill 

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

Fills the given buffer with cryptographically-random data.

Returns RandomError when the operating system’s random number generator is unavailable or fails.