RNG: Add Random.OSRNG package

This package provides a platform-independent interface to the underlying
operating system's random number generator.
This commit is contained in:
Dwayne C. Litzenberger 2008-09-17 11:00:45 -04:00
parent 75d09abdce
commit 6951a97eeb
8 changed files with 364 additions and 1 deletions

View file

@ -15,7 +15,7 @@ if sys.version[0:1] == '1':
if sys.platform == 'win32':
HTONS_LIBS = ['ws2_32']
plat_ext = [
Extension("Crypto.Util.winrandom",
Extension("Crypto.Random.OSRNG.winrandom",
libraries = HTONS_LIBS + ['advapi32'],
include_dirs=['src/'],
sources=["src/winrand.c"])
@ -173,6 +173,8 @@ kw = {'name':"pycrypto",
'cmdclass' : {'build_ext':PCTBuildExt, 'build_py': PCTBuildPy},
'packages' : ["Crypto", "Crypto.Hash", "Crypto.Cipher", "Crypto.Util",
"Crypto.Random",
"Crypto.Random.OSRNG",
"Crypto.SelfTest",
"Crypto.SelfTest.Cipher",
"Crypto.SelfTest.Hash",