]> granicus.if.org Git - python/commit
SF bug #778964: bad seed in python 2.3 random
authorRaymond Hettinger <python@rcn.com>
Sat, 9 Aug 2003 18:30:57 +0000 (18:30 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 9 Aug 2003 18:30:57 +0000 (18:30 +0000)
commit3081d59f920229b26293c7a3ee3f1a9da0da53e9
tree08061aabfcbf2b426df2b79277079411778d5e8d
parent39a682f5f223fb988ba634ba74e20b2b490cb333
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.
Lib/random.py
Lib/test/test_random.py
Misc/NEWS