SF bug #778964: bad seed in python 2.3 random
The default seed is time.time().
Multiplied by 256 before truncating so that fractional seconds are used.
This way, two successive calls to random.seed() are much more likely
to produce different sequences.
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py
index ea2243d..c9103e8 100644
--- a/Lib/test/test_random.py
+++ b/Lib/test/test_random.py
@@ -20,7 +20,7 @@
def test_autoseed(self):
self.gen.seed()
state1 = self.gen.getstate()
- time.sleep(1.1)
+ time.sleep(0.1)
self.gen.seed() # diffent seeds at different times
state2 = self.gen.getstate()
self.assertNotEqual(state1, state2)