Expand description

Instructions to generate random bits directly from the hardware (RDRAND and RDSEED).

The decision process for which instruction to use is based on what the output will be used for. If you wish to seed another pseudorandom number generator (PRNG), use RDSEED. For all other purposes, use RDRAND

See also: https://software.intel.com/en-us/blogs/2012/11/17/the-difference-between-rdrand-and-rdseed

  • RDRAND: Cryptographically secure pseudorandom number generator NIST:SP 800-90A
  • RDSEED: Non-deterministic random bit generator NIST: SP 800-90B & C (drafts)

Traits

RdRand trait to implement the generic rdrand_slice function.
RdSeed trait to implement the generic rdseed_slice function.

Functions

Generates a 16-bit random value and stores it in e.
Generates a 32-bit random value and stores it in e.
Generates a 64-bit random value and stores it in e.
Fill a slice with random values.
Generates a 16-bit random value and stores it in e.
Generates a 32-bit random value and stores it in e.
Generates a 64-bit random value and stores it in e.
Fill a slice with random values.