1 2 3 4 5 6 7 8 9 10
use bytes::Bytes; use rand::random; pub mod crypto; pub mod error; pub fn random_32_bytes() -> Bytes { let random_32_bytes = random::<[u8; 32]>(); Bytes::from(random_32_bytes.to_vec()) }