crev_common/
rand.rs

1use rand::{self, Rng};
2
3#[must_use]
4pub fn random_vec(len: usize) -> Vec<u8> {
5    rand::thread_rng()
6        .sample_iter(&rand::distributions::Standard)
7        .take(len)
8        .collect()
9}