ncryptf/
util.rs

1/// Returns len random bytes a Vec<u8> using dryoc
2pub fn randombytes_buf(len: usize) -> Vec<u8> {
3    let mut bytes = vec![0u8; len];
4    dryoc::rng::copy_randombytes(&mut bytes);
5    bytes
6}