Exemple #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)
Exemple #3
0
 def __init__(self):
     self.__winrand = winrandom.new()
     BaseRNG.__init__(self)
Exemple #4
0
 def __init__(self):
     self.__winrand = winrandom.new()
     BaseRNG.__init__(self)