From c2c40585c07dc831559b0eac2bdc8e9842021da6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 11 Jan 2003 23:42:07 +0000 Subject: [PATCH] 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. --- Misc/NEWS | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.47.3