pub(crate) fn generate_random_bytes(length: usize) -> Vec<u8> {
    (0..length)
        .map(|_| OsRng.gen())
        .filter(|b| *b != 0)
        .collect()
}
/// Generate a random byte vector with given `length`.
Generate a random byte vector with given `length`.
Generate a random byte vector with given ` length ` .
pub(crate) fn generate_random_bytes(length: usize) -> Vec<u8> {
    (0..length)
        .map(|_| OsRng.gen())
        .filter(|b| *b != 0)
        .collect()
}
pub ( crate ) fn generate_random_bytes ( length : usize ) -> Vec < u8 > { ( 0 .. length ) . map ( | _ | OsRng . gen ( ) ) . filter ( | b | * b != 0 ) . collect ( ) }
Generate a random byte vector with given `length`.
Generate a random byte vector with given ` length ` .
length
usize
length
usize