1
authorChristian Grothoff <christian@grothoff.org>
Wed, 12 May 2010 06:46:44 +0000 (06:46 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 12 May 2010 06:46:44 +0000 (06:46 +0000)
src/util/crypto_ksk.c

index fd5392840a9da9b993d68038485e5f9a73a1df78..26adbcda0e3bffe397ea66d480623288a01f6d73 100644 (file)
@@ -227,7 +227,7 @@ is_prime (mpz_t n, int steps, GNUNET_HashCode * hc)
 
   /* Find q and k, so that n = 1 + 2^k * q . */
   mpz_init_set (q, nminus1);
-  k = mpz_scan0 (q, 0);
+  k = mpz_scan1 (q, 0);
   mpz_tdiv_q_2exp (q, q, k);
 
   for (i = 0; i < steps; i++)