コード例 #1
0
ファイル: test_winrandom.py プロジェクト: 0xPr0xy/SSHWorm
 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
ファイル: nt.py プロジェクト: conjuringtricks/pycrypto
 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)