From: Christian Grothoff Date: Sun, 10 Jun 2012 22:44:32 +0000 (+0000) Subject: LRN: Fix-test_group-interval.patch: X-Git-Tag: initial-import-from-subversion-38251~13167 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=df62a12c9b51fd13cc37058d4a88a32d93386d79;p=oweals%2Fgnunet.git 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.... --- diff --git a/src/testing_old/testing_group.c b/src/testing_old/testing_group.c index 3ba7c5cce..46c513970 100644 --- a/src/testing_old/testing_group.c +++ b/src/testing_old/testing_group.c @@ -1949,7 +1949,8 @@ create_small_world_ring (struct GNUNET_TESTING_PeerGroup *pg, 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);