This module gives direct access to Windows Cryptographic API CryptGetRandom() function. The range() function uses B.5.1.1 Simple Discard Method from NIST SP800-90 with FIPS 140-2 p. 44 Continuous random number generator test. Example of winrandom usage:
Resources:
- Browse source at GitHub
- winrandom 1.2 at Python Package Index (PyPi)
- Fetch my PGP public key used to sign these packages
</ul>
winrandom-ctypes
If you are looking for a ctypes based implementation, have a look at Gregory Taylor's winrandom-ctypes. Advantages are obvious - no need to compile anything, ctypes module is included in Python starting from 2.5.Downloads