]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
SF bug #778964: bad seed in python 2.3 random
authorRaymond Hettinger <python@rcn.com>
Sat, 9 Aug 2003 18:20:16 +0000 (18:20 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 9 Aug 2003 18:20:16 +0000 (18:20 +0000)
commit8cf915e9fb83678e9715394d0a5c4bb8221852f8
tree84c116fe12d4aeb4fddd48ee382eef627284fcb0
parent6a555045149f27f8c4b43bee8b7eb4661076f96c
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 consequetive calls to random.seed() are much more likely
to produce different sequences.
Lib/random.py
Lib/test/test_random.py
Misc/NEWS