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