Function u32

fn u32() -> Result<u32, Error>

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

Examples

# fn main() -> Result<(), getrandom::Error> {
let rng_seed = getrandom::u32()?;
# Ok(()) }