aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/crypto_random.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/util/crypto_random.c b/src/util/crypto_random.c
index 6840445d1..ce7ec70f3 100644
--- a/src/util/crypto_random.c
+++ b/src/util/crypto_random.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of GNUnet. 2 This file is part of GNUnet. (C) 2001-2013 Christian Grothoff
3 (C) 2001-2013 Christian Grothoff (and other contributing authors) 3 (and other contributing authors)
4 4
5 GNUnet is free software; you can redistribute it and/or modify 5 GNUnet is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published 6 it under the terms of the GNU General Public License as published
@@ -286,13 +286,6 @@ 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 /* we only generate ephemeral keys in-process; for those,
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));
296 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0); 289 gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
297 gcry_fast_random_poll (); 290 gcry_fast_random_poll ();
298 GNUNET_CRYPTO_seed_weak_random (time (NULL) ^ 291 GNUNET_CRYPTO_seed_weak_random (time (NULL) ^