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 497c8c4 commit d507493Copy full SHA for d507493
Lib/test/test_zlib.py
@@ -516,18 +516,7 @@ def test_odd_flush(self):
516
517
# Try 17K of data
518
# generate random data stream
519
- try:
520
- # In 2.3 and later, WichmannHill is the RNG of the bug report
521
- gen = random.WichmannHill()
522
- except AttributeError:
523
524
- # 2.2 called it Random
525
- gen = random.Random()
526
527
- # others might simply have a single RNG
528
- gen = random
529
- gen.seed(1)
530
- data = gen.randbytes(17 * 1024)
+ data = random.randbytes(17 * 1024)
531
532
# compress, sync-flush, and decompress
533
first = co.compress(data)
0 commit comments