aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_random.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-01-07 12:59:02 +0000
committerChristian Grothoff <christian@grothoff.org>2014-01-07 12:59:02 +0000
commit4f88ee6a348efb0dc2c51f488838689cf33bbdef (patch)
treebb3fc485c9331f57037e0baa53d4b67ffda8550e /src/util/crypto_random.c
parent5aa336fc12d2ffdfe9cb2c6c877b1c72175cea18 (diff)
downloadgnunet-4f88ee6a348efb0dc2c51f488838689cf33bbdef.tar.gz
gnunet-4f88ee6a348efb0dc2c51f488838689cf33bbdef.zip
bad comment, option actually not required anymore as we do not use VERY_STRONG anyway
Diffstat (limited to 'src/util/crypto_random.c')
-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) ^