예제 #1
0
 def runTest(self):
     """Crypto.Random.OSRNG.winrandom"""
     # Import the winrandom module and try to use it
     from Crypto.Random.OSRNG import winrandom
     randobj = winrandom.new()
     x = randobj.get_bytes(16)
     y = randobj.get_bytes(16)
     self.assertNotEqual(x, y)
예제 #2
0
 def runTest(self):
     """Crypto.Random.OSRNG.winrandom"""
     # Import the winrandom module and try to use it
     from Crypto.Random.OSRNG import winrandom
     randobj = winrandom.new()
     x = randobj.get_bytes(16)
     y = randobj.get_bytes(16)
     self.assertNotEqual(x, y)
예제 #3
0
 def __init__(self):
     self.__winrand = winrandom.new()
     BaseRNG.__init__(self)
예제 #4
0
파일: nt.py 프로젝트: faturita/mne-python
 def __init__(self):
     self.__winrand = winrandom.new()
     BaseRNG.__init__(self)