[Python-checkins] python/dist/src/Misc NEWS,1.839,1.840

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Sat Aug 9 12:30:59 EDT 2003


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv21858/Misc

Modified Files:
	NEWS 
Log Message:
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.



Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.839
retrieving revision 1.840
diff -C2 -d -r1.839 -r1.840
*** NEWS	8 Aug 2003 12:20:02 -0000	1.839
--- NEWS	9 Aug 2003 18:30:57 -0000	1.840
***************
*** 26,29 ****
--- 26,33 ----
  -------
  
+ - 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.





More information about the Python-checkins mailing list