Clojush random integer fix

May 2, 2010
by Lee Spector (lspector)

The 20100502 update to clojush adds a fix for calls to the random integer generator with bignum arguments, which would previously cause an error. They’re still not handled in the best possible way (which would be to return integers in the full specified range, even when the argument is a bignum), but at least they don’t cause errors. More specifically, in the update but arguments greater than 2^31-1 are treated as if they were 2^31-1 (2147483647).



Leave a Reply

You must be logged in to post a comment.