From: Raymond Hettinger Date: Sat, 11 Jan 2003 23:42:07 +0000 (+0000) Subject: Since the WH generator never produced zero, it wasn't fair to characterize X-Git-Tag: v2.2.3c1~178 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2c40585c07dc831559b0eac2bdc8e9842021da6;p=thirdparty%2FPython%2Fcpython.git Since the WH generator never produced zero, it wasn't fair to characterize this as a fix to a long outstanding bug. Instead, it makes sure that the methods work as documented with any generator. --- diff --git a/Misc/NEWS b/Misc/NEWS index 1a78323aede3..022f53984d35 100644 --- 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.