Staging
v0.8.1
https://github.com/python/cpython
Revision 8cf915e9fb83678e9715394d0a5c4bb8221852f8 authored by Raymond Hettinger on 09 August 2003, 18:20:16 UTC, committed by Raymond Hettinger on 09 August 2003, 18:20:16 UTC
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.
1 parent 6a55504
History
Tip revision: 8cf915e9fb83678e9715394d0a5c4bb8221852f8 authored by Raymond Hettinger on 09 August 2003, 18:20:16 UTC
SF bug #778964: bad seed in python 2.3 random
Tip revision: 8cf915e
File Mode Size
Demo
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Python
RISCOS
Tools
.cvsignore -rw-r--r-- 109 bytes
.hgtags -rw-r--r-- 2.2 KB
LICENSE -rw-r--r-- 12.6 KB
Makefile.pre.in -rw-r--r-- 31.0 KB
README -rw-r--r-- 47.8 KB
configure -rwxr-xr-x 514.5 KB
configure.in -rw-r--r-- 80.8 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 24.4 KB
setup.py -rw-r--r-- 49.9 KB

README

back to top