Skip to main content

os_random

Function os_random 

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

Get N bytes of random data.

This function is mildly expensive to call, as it fetches random data directly from the OS entropy source.

ยงPanics

Panics if the OS entropy source returns an error.