~mdw
/
catacomb-python
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rand.c: Make nonce/IV arguments to cipher-based random generators optional.
[catacomb-python]
/
t
/
testutils.py
diff --git
a/t/testutils.py
b/t/testutils.py
index
0ba49c6
..
67bcc0e
100644
(file)
--- a/
t/testutils.py
+++ b/
t/testutils.py
@@
-99,10
+99,9
@@
def prep_lenseq(w, n, bigendp, goodp):
span(n) + \
byteseq([0xff])
span(n) + \
byteseq([0xff])
-Z64 = C.ByteString.zero(8)
def detrand(seed):
"""Return a fast deterministic random generator with the given SEED."""
def detrand(seed):
"""Return a fast deterministic random generator with the given SEED."""
- return C.chacha8rand(C.sha256().hash(bin(seed)).done()
, Z64
)
+ return C.chacha8rand(C.sha256().hash(bin(seed)).done())
class GenericTestMixin (U.TestCase):
"""
class GenericTestMixin (U.TestCase):
"""