This module is an interface for Intel's RDRAND instruction.
RDRAND (for "read random"; known as Intel Secure Key Technology, previously known as Bull Mountain) is an instruction for returning random numbers from an Intel on-chip hardware random number generator which has been seeded by an on-chip entropy source.
RDRAND is available in Ivy Bridge processors and is part of the Intel 64 and IA-32 instruction set architectures. AMD added support for the instruction in June 2015.
See more: https://en.wikipedia.org/wiki/RDRAND
Do not use rdrand/rdseed alone as a CSPRNG.
# Clone this repo.
git clone https://github.com/trusted-ws/python-rdrand
# Inside the directory.
cd python-rdrand
# Using sudo, compile and install the module:
sudo build.sh install
Open a Python 3x console and try to import:
import rdrand
Intel® Digital Random Number Generator (DRNG) Software Implementation Guide
Intel® 64 and IA-32 Architectures Software Developer’s Manuals @ 7.3.17.1