gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r21866 - gnunet/src/testing_old


From: gnunet
Subject: [GNUnet-SVN] r21866 - gnunet/src/testing_old
Date: Mon, 11 Jun 2012 00:44:32 +0200

Author: grothoff
Date: 2012-06-11 00:44:32 +0200 (Mon, 11 Jun 2012)
New Revision: 21866

Modified:
   gnunet/src/testing_old/testing_group.c
Log:
LRN: Fix-test_group-interval.patch:
Just a wild guess - you wanted to find ids either inside the interval
or outside of it.
Although maybe you should have used <= and >= in one of the conditions
then?
CG: only mrwiggles knows the truth.  Anyway, old testing will be gone soon 
enough....


Modified: gnunet/src/testing_old/testing_group.c
===================================================================
--- gnunet/src/testing_old/testing_group.c      2012-06-10 22:42:23 UTC (rev 
21865)
+++ gnunet/src/testing_old/testing_group.c      2012-06-10 22:44:32 UTC (rev 
21866)
@@ -1949,7 +1949,8 @@
         randomPeer =
             GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, pg->total);
         while ((((randomPeer < max) && (randomPeer > min)) && (useAnd == 0)) ||
-               (((randomPeer > min) || (randomPeer < max)) && (useAnd == 1)))
+               (((randomPeer > max) || (randomPeer < min)) && (useAnd == 1)))
+
         {
           randomPeer =
               GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, pg->total);




reply via email to

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