Module core::core_arch::x86_64::rdrand

source ·
🔬This is a nightly-only experimental API. (stdsimd #48556)
Available on x86-64 only.
Expand description

RDRAND and RDSEED instructions for returning random numbers from an Intel on-chip hardware random number generator which has been seeded by an on-chip entropy source.

Functions

  • x86_rdrand64_step 🔒 Experimental
  • x86_rdseed64_step 🔒 Experimental
  • Read a hardware generated 64-bit random value and store the result in val. Returns 1 if a random value was generated, and 0 otherwise.
  • Read a 64-bit NIST SP800-90B and SP800-90C compliant random value and store in val. Return 1 if a random value was generated, and 0 otherwise.