summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-08-09 18:30:57 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-08-09 18:30:57 (GMT)
commit3081d59f920229b26293c7a3ee3f1a9da0da53e9 (patch)
tree08061aabfcbf2b426df2b79277079411778d5e8d /Misc
parent39a682f5f223fb988ba634ba74e20b2b490cb333 (diff)
downloadcpython-3081d59f920229b26293c7a3ee3f1a9da0da53e9.zip
cpython-3081d59f920229b26293c7a3ee3f1a9da0da53e9.tar.gz
cpython-3081d59f920229b26293c7a3ee3f1a9da0da53e9.tar.bz2
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.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 1de08e7..93c7fb8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -25,6 +25,10 @@ Extension modules
Library
-------
+- random.seed() with no arguments or None uses time.time() as a default
+ seed. Modified to match Py2.2 behavior and use fractional seconds so
+ that successive runs are more likely to produce different sequences.
+
- itertools.izip() with no arguments now returns an empty iterator instead
of raising a TypeError exception.