]> granicus.if.org Git - python/commit
random.gauss() uses a piece of hidden state used by nothing else,
authorTim Peters <tim.peters@gmail.com>
Sun, 5 May 2002 20:40:00 +0000 (20:40 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 5 May 2002 20:40:00 +0000 (20:40 +0000)
commit46c04e140cf26d1b44935c28c6f15ea467400d22
tree1b3adac92e00f74e196857c7289bce4f06929704
parent2b41b0d6a70330153952477baec47ec8c2efdc18
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.

Bugfix candidate (random.gauss() has always been broken in this way),
despite that it may change results.
Lib/random.py
Lib/test/test_random.py [new file with mode: 0644]
Misc/NEWS