Re: java.security expert?

2004-03-13 Thread Andrew Haley
Andrew Haley writes: Johan Peeters writes: The guarantee that the result is prime seems rather weak considering that isProbablePrime() is called with argument 1. Assuming that the likelihood that steps 1 to 6 comes up with a prime is about 1/2, It isn't. Ron Rivest

Re: java.security expert?

2004-03-13 Thread Andrew Haley
Johan Peeters writes: The guarantee that the result is prime seems rather weak considering that isProbablePrime() is called with argument 1. Assuming that the likelihood that steps 1 to 6 comes up with a prime is about 1/2, It isn't. Ron Rivest conjectures [1] that the probablility of

java.security expert?

2004-03-05 Thread Tom Tromey
While debugging gcjx, I ran across some strange code in Prime.java. I think the intention was for the code to resemble the result of the appended patch. The patch looks big, but it just wraps the body in a `while (true)' and changes a `break' to `continue'. Any comments on this? I didn't look