[][src]Function safe_arch::rdrand_u32

#[must_use]pub fn rdrand_u32(out: &mut u32) -> i32
This is supported with target feature rdrand only.

Try to obtain a random u32 from the hardware RNG.

let mut val = 0_u32;
let it_worked = rdrand_u32(&mut val);