flake8: enable more mandatory tests
This commit is contained in:
@@ -49,11 +49,11 @@ def SHA1(x):
|
||||
# Check that os.urandom works
|
||||
import zlib
|
||||
length = len(zlib.compress(os.urandom(1000)))
|
||||
assert(length > 900)
|
||||
assert length > 900
|
||||
|
||||
def getRandomBytes(howMany):
|
||||
b = bytearray(os.urandom(howMany))
|
||||
assert(len(b) == howMany)
|
||||
assert len(b) == howMany
|
||||
return b
|
||||
|
||||
prngName = "os.urandom"
|
||||
|
||||
Reference in New Issue
Block a user