use rand::{self, AsByteSliceMut};
use rand_core::{OsRng, RngCore};
pub fn get_random_vec(len: usize) -> Vec<u8> {
let mut out = vec![0u8; len];
OsRng.fill_bytes(out.as_byte_slice_mut());
out
}
pub fn get_random_array<A: Default + AsByteSliceMut>() -> A {
let mut out = A::default();
OsRng.fill_bytes(out.as_byte_slice_mut());
out
}