summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDwayne C. Litzenberger <dlitz@dlitz.net>2012-07-03 11:51:51 -0400
committerDwayne C. Litzenberger <dlitz@dlitz.net>2012-07-03 11:53:27 -0400
commitbc798124d7f85d955df861d9bf22123c9898cbce (patch)
treea012b7b4bc4f5d8c60373cb43cb5d0a3f1262e98 /src
parent8157d8b922e50c9c52045c5ae83e7d14a2785e22 (diff)
downloadpycrypto-bc798124d7f85d955df861d9bf22123c9898cbce.tar.gz
_fastmath: Use default false_positive_prob is one is not specified
This should never happen, but the behaviour is saner if it does.
Diffstat (limited to 'src')
-rw-r--r--src/_fastmath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/_fastmath.c b/src/_fastmath.c
index 99dbb0e..c912374 100644
--- a/src/_fastmath.c
+++ b/src/_fastmath.c
@@ -1457,7 +1457,7 @@ getStrongPrime (PyObject *self, PyObject *args, PyObject *kwargs)
mpz_t tmp[2], lower_bound, upper_bound, range, increment;
mpf_t tmp_bound;
char *field;
- double false_positive_prob;
+ double false_positive_prob = 1e-6;
int rabin_miller_rounds, is_possible_prime, error = 0, result;
PyObject *prime, *randfunc=NULL;
static char *kwlist[] = {"N", "e", "false_positive_prob", "randfunc", NULL};