[Python-checkins] python/dist/src/Misc NEWS,1.337.2.4.2.54,1.337.2.4.2.55

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Sat, 11 Jan 2003 15:42:09 -0800


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

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


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.337.2.4.2.54
retrieving revision 1.337.2.4.2.55
diff -C2 -d -r1.337.2.4.2.54 -r1.337.2.4.2.55
*** NEWS	10 Jan 2003 23:51:56 -0000	1.337.2.4.2.54
--- NEWS	11 Jan 2003 23:42:07 -0000	1.337.2.4.2.55
***************
*** 15,19 ****
  - Fixed sundry memory leaks.
  
! - Correct long standing bugs in the methods for random distributions.
    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.
--- 15,21 ----
  - Fixed sundry memory leaks.
  
! - 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.