crev-common 0.27.1

Scalable, social, Code REView system that we desperately need - common code
Documentation
1
2
3
4
5
6
7
8
9
use rand::{self, Rng};

#[must_use]
pub fn random_vec(len: usize) -> Vec<u8> {
    rand::thread_rng()
        .sample_iter(&rand::distributions::Standard)
        .take(len)
        .collect()
}