This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH] BigInteger(int numBits, Random rnd) distribution not uniform


>>>>> "Mark" == Mark J Roberts <mjr@anarcast.net> writes:

Mark> The generated BigIntegers were consistently too large, so the
Mark> loop never exited. With this patch, our code works, and the
Mark> distribution seems even:

Thanks.  I'm going to check this in.  For those interested, there was
a brief discussion of the patch on java-patches.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]