freebsd-ports/security/sfs/files/patch-random_prime.C
Matthew N. Dodd 9702902e84 Fix compile problems on -CURRENT.
PR:		 ports/57586
Submitted by:	 Edwin Groothuis <edwin@mavetju.org>
Approved by:	 maintainer
2003-10-15 22:04:36 +00:00

12 lines
360 B
C

--- 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;
}
}