[alexandria-devel] Bug in gaussian-random

Andy Peterson andy.arvid at gmail.com
Mon Oct 1 18:44:34 UTC 2012


function: gaussian-random (&optional min max)

If gaussian-random is called with a value for min and nil for max (or vice
versa), the function could enter an infinite loop.

example (gaussian-random 100 nil)  almost always causes an infinite loop.

If the first call to the local function "gauss" creates a value that does
not satisify min,
then the local function "guard" enters an infinite loop because guard is
called with a value for max that is less than min.

Sincerely,

Andy Peterson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/alexandria-devel/attachments/20121001/110aaa7c/attachment.html>


More information about the alexandria-devel mailing list