summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_random.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-12-08 01:13:53 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-12-08 01:13:53 (GMT)
commit3fcf0029945d8c6f866fdbb98517136999d7be7e (patch)
tree189af74502f0ce1090dcb6abf5339d4174c9a640 /Lib/test/test_random.py
parent10e05e17a3e7657ecdc4c7986d35275d76c6d603 (diff)
downloadcpython-3fcf0029945d8c6f866fdbb98517136999d7be7e.zip
cpython-3fcf0029945d8c6f866fdbb98517136999d7be7e.tar.gz
cpython-3fcf0029945d8c6f866fdbb98517136999d7be7e.tar.bz2
Update whatsnew. Salt the random number seed.
Diffstat (limited to 'Lib/test/test_random.py')
-rw-r--r--Lib/test/test_random.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
index feb52a5..776d0c4 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -246,8 +246,8 @@ class MersenneTwister_TestBasicOps(TestBasicOps):
'0x1.1ebb4352e4c4dp-1', '0x1.1a7422abf9c11p-1'])
self.gen.seed("the quick brown fox", version=2)
self.assertEqual([self.gen.random().hex() for i in range(4)],
- ['0x1.1294009b9eda4p-2', '0x1.2ff96171b0010p-1',
- '0x1.459e0989bd8e0p-5', '0x1.8b5f55892ddcbp-1'])
+ ['0x1.1239ddfb11b7cp-3', '0x1.b3cbb5c51b120p-4',
+ '0x1.8c4f55116b60fp-1', '0x1.63eb525174a27p-1'])
def test_setstate_first_arg(self):
self.assertRaises(ValueError, self.gen.setstate, (1, None, None))