blob: d41da3751fc048320614c774c48b56f9530b4531 [file] [log] [blame]
pub fn fill_bytes(bytes: &mut [u8]) {
unsafe {
wasi::random_get(bytes.as_mut_ptr(), bytes.len()).expect("failed to generate random data")
}
}