aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/crypto_random.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/crypto_random.c b/src/util/crypto_random.c
index ce7ec70f3..89985c7ac 100644
--- a/src/util/crypto_random.c
+++ b/src/util/crypto_random.c
@@ -286,6 +286,13 @@ GNUNET_CRYPTO_random_init ()
286 "Failed to set libgcrypt option %s: %s\n", 286 "Failed to set libgcrypt option %s: %s\n",
287 "DISABLE_SECMEM", 287 "DISABLE_SECMEM",
288 gcry_strerror (rc)); 288 gcry_strerror (rc));
289 /* Otherwise gnunet-ecc takes forever to complete, besides
290 we are fine with "just" using GCRY_STRONG_RANDOM */
291 if ((rc = gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0)))
292 FPRINTF (stderr,
293 "Failed to set libgcrypt option %s: %s\n",
294 "ENABLE_QUICK_RANDOM",
295 gcry_strerror (rc));
289 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 296 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
290 gcry_fast_random_poll (); 297 gcry_fast_random_poll ();
291 GNUNET_CRYPTO_seed_weak_random (time (NULL) ^ 298 GNUNET_CRYPTO_seed_weak_random (time (NULL) ^