updated on Wed Jan 11 16:09:51 UTC 2012
[aur-mirror.git] / sfs / sfs.patch
bloba9a5afbb642759f7d8c30cb88ef9a1aa13064844
1 diff -urN sfs-0.7.2/crypt/random_prime.C sfs-0.7.2-new/crypt/random_prime.C
2 --- sfs-0.7.2/crypt/random_prime.C 2001-01-13 11:46:11.000000000 -0800
3 +++ sfs-0.7.2-new/crypt/random_prime.C 2004-03-02 22:39:11.000000000 -0800
4 @@ -336,7 +336,7 @@
5 bigint t1, t2;
6 for (;;) {
7 next_weak ();
8 - if (!tmp || (fermat2_test (tmp, &t1, &t2) == 2 && tmp.probab_prime (iter)))
9 + if (!tmp || (fermat2_test (tmp, &t1, &t2) && tmp.probab_prime (iter)))
10 return tmp;