diff options
Diffstat (limited to 'security/sfs/files')
-rw-r--r-- | security/sfs/files/patch-random_prime.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/sfs/files/patch-random_prime.C b/security/sfs/files/patch-random_prime.C new file mode 100644 index 000000000000..0797cc4f0eeb --- /dev/null +++ b/security/sfs/files/patch-random_prime.C @@ -0,0 +1,11 @@ +--- crypt/random_prime.C.orig Tue Oct 14 23:24:18 2003 ++++ crypt/random_prime.C Tue Oct 14 22:59:32 2003 +@@ -336,7 +336,7 @@ + bigint t1, t2; + for (;;) { + next_weak (); +- if (!tmp || (fermat2_test (tmp, &t1, &t2) == 2 && tmp.probab_prime (iter))) ++ if (!tmp || (fermat2_test (tmp, &t1, &t2) && tmp.probab_prime (iter))) + return tmp; + } + } |