getrandom

Function u32

Source
pub fn u32() -> Result<u32, Error>
Expand description

Get random u32 from the system’s preferred random number source.

§Examples

let rng_seed = getrandom::u32()?;