[−][src]Function safe_arch::rdrand_u16
#[must_use]pub fn rdrand_u16(out: &mut u16) -> i32
This is supported with target feature
rdrand
only.Try to obtain a random u16
from the hardware RNG.
let mut val = 0_u16; let it_worked = rdrand_u16(&mut val);