You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# In 2.3 and later, WichmannHill is the RNG of the bug report
gen=random.WichmannHill()
exceptAttributeError:
try:
# 2.2 called it Random
gen=random.Random()
exceptAttributeError:
# others might simply have a single RNG
gen=random
gen.seed(1)
It always fails with AttributeError, because random.WichmannHill() does not exist.
This is some old compatibility class that was removed a long time ago:
The attributes random.whseed and random.__whseed have no meaning for
the new generator. Code using these attributes should switch to a
new class, random.WichmannHill which is provided for backward
compatibility and to make an alternate generator available.
Activity
pythongh-110332: Remove mentions of `random.WichmannHill` from `test_…
pythongh-110332: Remove mentions of `random.WichmannHill` from `test_…
gh-110332: Remove mentions of `random.WichmannHill` from `test_zlib` (#…
pythongh-110332: Remove mentions of `random.WichmannHill` from `test_…
pythongh-110332: Remove mentions of `random.WichmannHill` from `test_…
[3.11] gh-110332: Remove mentions of `random.WichmannHill` from `test…
[3.12] gh-110332: Remove mentions of `random.WichmannHill` from `test…
AlexWaygood commentedon Oct 4, 2023
Thanks!
pythongh-110332: Remove mentions of `random.WichmannHill` from `test_…