示例#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)
 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)