infinite loop in mpz_urandomm with small third argument

Camm Maguire camm at
Wed Jun 1 01:02:26 CEST 2005

Greetings!  We are considering using gmp random numbers in GCL.  I've
run across an infinite loop with a random base of, e.g. 18.  Is this a
known issue (current Debian unstable gmp-4.1.4)?  Right now we're
working around by putting a floor under the base of (1<<31)-1.  I can
provide a more detailed report if useful, but am out of time right

Secondly, you might want to mention GCL, maxima, ACL2, and AXIOM (the
latter three when built with GCL) as gmp using applications on your

Take care,
Camm Maguire			     			camm at
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

More information about the gmp-discuss mailing list