gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r31828 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r31828 - gnunet/src/util
Date: Wed, 8 Jan 2014 11:47:06 +0100

Author: bartpolot
Date: 2014-01-08 11:47:06 +0100 (Wed, 08 Jan 2014)
New Revision: 31828

Modified:
   gnunet/src/util/crypto_random.c
Log:
-revert r31823, it broke gnunet-ecc CLI tool


Modified: gnunet/src/util/crypto_random.c
===================================================================
--- gnunet/src/util/crypto_random.c     2014-01-07 19:04:09 UTC (rev 31827)
+++ gnunet/src/util/crypto_random.c     2014-01-08 10:47:06 UTC (rev 31828)
@@ -286,6 +286,13 @@
              "Failed to set libgcrypt option %s: %s\n",
              "DISABLE_SECMEM",
             gcry_strerror (rc));
+  /* Otherwise gnunet-ecc takes forever to complete, besides
+     we are fine with "just" using GCRY_STRONG_RANDOM */
+  if ((rc = gcry_control (GCRYCTL_ENABLE_QUICK_RANDOM, 0)))
+    FPRINTF (stderr,
+            "Failed to set libgcrypt option %s: %s\n",
+            "ENABLE_QUICK_RANDOM",
+            gcry_strerror (rc));
   gcry_control (GCRYCTL_INITIALIZATION_FINISHED, 0);
   gcry_fast_random_poll ();
   GNUNET_CRYPTO_seed_weak_random (time (NULL) ^




reply via email to

[Prev in Thread] Current Thread [Next in Thread]