We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
random.WichmannHill
test_zlib
1 parent 4936fa9 commit f53871eCopy full SHA for f53871e
Lib/test/test_zlib.py
@@ -513,18 +513,7 @@ def test_odd_flush(self):
513
514
# Try 17K of data
515
# generate random data stream
516
- try:
517
- # In 2.3 and later, WichmannHill is the RNG of the bug report
518
- gen = random.WichmannHill()
519
- except AttributeError:
520
521
- # 2.2 called it Random
522
- gen = random.Random()
523
524
- # others might simply have a single RNG
525
- gen = random
526
- gen.seed(1)
527
- data = gen.randbytes(17 * 1024)
+ data = random.randbytes(17 * 1024)
528
529
# compress, sync-flush, and decompress
530
first = co.compress(data)
0 commit comments