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 __init__(self): self.__winrand = winrandom.new() BaseRNG.__init__(self)