Function core::arch::x86_64::_rdrand16_step

1.27.0 · source ·
pub unsafe fn _rdrand16_step(val: &mut u16) -> i32
Available on (x86 or x86-64) and target feature rdrand and x86-64 only.
Expand description

读取硬件生成的 16 位随机值,并将结果存储在 val 中。 如果生成随机值,则返回 1,否则返回 0。

Intel’s documentation