]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Finish up the random fixes that Raymond started yesterday.
authorMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 10:27:28 +0000 (10:27 +0000)
committerMichael W. Hudson <mwh@python.net>
Tue, 24 Sep 2002 10:27:28 +0000 (10:27 +0000)
Lib/test/test_random.py
Misc/NEWS

index 5f60f4b7b23521ef3ec08fbb618dc86fb0957740..d508c9fa656916cef77862c41e1d4b9736e748f8 100644 (file)
@@ -1,4 +1,4 @@
-from test import test_support
+import test_support
 import random
 
 # Ensure that the seed() method initializes all the hidden state.  In
index 99704c8b54d1624b5c6f4f2e6617d053b92a4981..a1ff3316ec5227c76a94e354216461cc07050713 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -52,6 +52,13 @@ Extension modules
 
 Library
 
+- random.gauss() uses a piece of hidden state used by nothing else,
+  and the .seed() and .whseed() methods failed to reset it.  In other
+  words, setting the seed didn't completely determine the sequence of
+  results produced by random.gauss().  It does now.  Programs repeatedly
+  mixing calls to a seed method with calls to gauss() may see different
+  results now.
+
 - Some fixes in the copy module: when an object is copied through its
   __reduce__ method, there was no check for a __setstate__ method on
   the result [SF patch 565085]; deepcopy should treat instances of