This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.


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

Re: Algorithm used by BigInteger prime generator?


On Apr 22, 1999, "John Keiser" <John.Keiser@wcom.com> wrote:

> Incidentally, as long as this method creates random BigIntegers, why does it
> matter what algorithm is used?

Given my Random generator, initialized with the same seed, I should be 
able to generate the same sequence of prime BigIntegers on any Java
platform, otherwise WORA falls apart.  That's why the standard Random
class is clearly specified, and that's why the algorithm for random
big prime generation should too.

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Brasil
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists