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