Skip to main content

bytes

Function bytes 

Source
pub fn bytes<const N: usize>() -> Result<[u8; N], RandomError>
Expand description

Returns an array filled with cryptographically-random data.

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