[alexandria-devel] Bug in gaussian-random
Hello, Four months ago, I reported a bug in gaussian-random when either optional parameter min or max is nil but not both are nil. The docstring has been modified since then but the code is still the same and the bug remains. In such a situation it is possible to enter an infinite loop. This is easy to demonstrate by the call (gaussian-random 0 nil). You may need to repeat the call a few times because the bug depends on the values returned by the first call to the local function gauss. An infinite loop will occur if gauss returns a negative number. I have attached a patch which fixes the bug. Sincerely, Andy Peterson
Four months ago, I reported a bug in gaussian-random when either optional parameter min or max is nil but not both are nil. The docstring has been modified since then but the code is still the same and the bug remains. In such a situation it is possible to enter an infinite loop.
pushed (with some whitespace changes), and committed a test also that demonstrates the failure. http://common-lisp.net/gitweb?p=projects/alexandria/alexandria.git;a=summary thanks, and sorry for the delay! -- • attila lendvai • PGP: 963F 5D5F 45C7 DFCD 0A39 -- “It's better to walk alone, than with a crowd going in the wrong direction.” — Diane Grant
participants (2)
-
Andy Peterson
-
Attila Lendvai