Skip to main content

random_bytes

Function random_bytes 

Source
pub fn random_bytes<const N: usize>() -> [u8; N]
Expand description

N bytes from the OS generator. Panics when it fails, as Node’s crypto throws, so ids never repeat.