diff options
author | Raymond Hettinger <python@rcn.com> | 2004-09-13 22:23:21 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-09-13 22:23:21 (GMT) |
commit | 23f1241dc6495eb255e1a389aef204a3e35a2632 (patch) | |
tree | 36ba60b6ea16729a8da357dde30b86de6ea55d9c /Lib/test/test_random.py | |
parent | 3e773fb6225a9da6fd3f45bad9ead3baa8979f02 (diff) | |
download | cpython-23f1241dc6495eb255e1a389aef204a3e35a2632.zip cpython-23f1241dc6495eb255e1a389aef204a3e35a2632.tar.gz cpython-23f1241dc6495eb255e1a389aef204a3e35a2632.tar.bz2 |
SF #1027105: HardwareRandom should be renamed OSRandom
Renamed the new generator at Trevor's recommendation.
The name HardwareRandom suggested a bit more than it
delivered (no radioactive decay detectors or such).
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r-- | Lib/test/test_random.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index f30ed1f..b8d0b5d 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py @@ -164,8 +164,8 @@ class WichmannHill_TestBasicOps(TestBasicOps): self.assertRaises(UserWarning, self.gen.randrange, 2**60) warnings.filters[:] = oldfilters -class HardwareRandom_TestBasicOps(TestBasicOps): - gen = random.HardwareRandom() +class SystemRandom_TestBasicOps(TestBasicOps): + gen = random.SystemRandom() def test_autoseed(self): # Doesn't need to do anything except not fail @@ -496,11 +496,11 @@ def test_main(verbose=None): TestModule] try: - random.HardwareRandom().random() + random.SystemRandom().random() except NotImplementedError: pass else: - testclasses.append(HardwareRandom_TestBasicOps) + testclasses.append(SystemRandom_TestBasicOps) test_support.run_unittest(*testclasses) |