[go: up one dir, main page]

Function orion::core::util::gen_rand_key[][src]

pub fn gen_rand_key(len: usize) -> Result<Vec<u8>, UnknownCryptoError>

Return a random byte vector of a given length. This uses the rand crate, which means that random data is read from the OS source /dev/urandom or CryptGenRandom(). Length must be greater than 1.