Skip to main content

non_zero_random_bytes

Function non_zero_random_bytes 

Source
fn non_zero_random_bytes<R: TryCryptoRng + ?Sized>(
    rng: &mut R,
    data: &mut [u8],
) -> Result<(), R::Error>
Expand description

Fills the provided slice with random values, which are guaranteed to not be zero.