Esempio n. 1
0
 def getRandomBytes(howMany):
     s = win32prng.getRandomBytes(howMany)
     if len(s) != howMany:
         raise AssertionError()
     return stringToBytes(s)
Esempio n. 2
0
 def getRandomBytes(howMany):
     s = win32prng.getRandomBytes(howMany)
     if len(s) != howMany:
         raise AssertionError()
     return stringToBytes(s)