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 1465386 commit 3871f9cCopy full SHA for 3871f9c
Lib/test/test_zlib.py
@@ -512,16 +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
+ gen = random.Random()
525
gen.seed(1)
526
data = gen.randbytes(17 * 1024)
527
0 commit comments