]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Since the WH generator never produced zero, it wasn't fair to characterize
authorRaymond Hettinger <python@rcn.com>
Sat, 11 Jan 2003 23:42:07 +0000 (23:42 +0000)
committerRaymond Hettinger <python@rcn.com>
Sat, 11 Jan 2003 23:42:07 +0000 (23:42 +0000)
this as a fix to a long outstanding bug.  Instead, it makes sure that the
methods work as documented with any generator.

Misc/NEWS

index 1a78323aede38ffb923699047fd833390fc95e3d..022f53984d350b4b1b03a34d28a1bb08d48cf0c4 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -14,7 +14,9 @@ Release date: XX-XXX-2003
 
 - Fixed sundry memory leaks.
 
-- Correct long standing bugs in the methods for random distributions.
+- Improve the robustness of the methods for random distributions so
+  they can work with generators producing a full range of values
+  (unlike the Wichmann-Hill generator which never produces a zero).
   The range of u=random() is [0,1), so log(u) and 1/x can fail.  Fix
   by setting u=1-random() or by reselecting for a usable value.