Skip to content

Commit 474a124

Browse files
committed
One more check for highlevelcrypto.randomBytes()
1 parent b1c1401 commit 474a124

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tests/test_crypto.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def test_randomBytes(self):
8080
data = highlevelcrypto.randomBytes(n)
8181
self.assertEqual(len(data), n)
8282
self.assertNotEqual(len(set(data)), 1)
83+
self.assertNotEqual(data, highlevelcrypto.randomBytes(n))
8384

8485
def test_random_keys(self):
8586
"""Dummy checks for random keys"""

0 commit comments

Comments
 (0)