Skip to content

Commit b7e88e4

Browse files
committed
clean up
1 parent 9ad7f85 commit b7e88e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/de/tilman_neumann/jml/factor/pollardRho/PollardRho31.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public int findSingleFactor(int nOriginal) {
6666
x = squareAddModN31(x, c);
6767
xx = squareAddModN31(xx, c);
6868
xx = squareAddModN31(xx, c);
69-
gcd = gcdEngine.gcd((int)(x-xx), n);
70-
} while(gcd==1);
69+
gcd = gcdEngine.gcd(x-xx, n);
70+
} while (gcd==1);
7171
} while (gcd==n); // leave loop if factor found; otherwise continue with a new random c
7272
if (DEBUG) LOG.debug("Found factor of " + nOriginal + " = " + gcd);
7373
return gcd;

0 commit comments

Comments
 (0)