aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-10 22:44:32 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-10 22:44:32 +0000
commitdf62a12c9b51fd13cc37058d4a88a32d93386d79 (patch)
tree46e4b0e376f45fa706a331e0b9ac90025fb53b2b /src
parent61e4f49afdcb778fe5a46b77f90d2ab7f3cd7d4b (diff)
downloadgnunet-df62a12c9b51fd13cc37058d4a88a32d93386d79.tar.gz
gnunet-df62a12c9b51fd13cc37058d4a88a32d93386d79.zip
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....
Diffstat (limited to 'src')
-rw-r--r--src/testing_old/testing_group.c3
1 files changed, 2 insertions, 1 deletions
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,
1949 randomPeer = 1949 randomPeer =
1950 GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, pg->total); 1950 GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, pg->total);
1951 while ((((randomPeer < max) && (randomPeer > min)) && (useAnd == 0)) || 1951 while ((((randomPeer < max) && (randomPeer > min)) && (useAnd == 0)) ||
1952 (((randomPeer > min) || (randomPeer < max)) && (useAnd == 1))) 1952 (((randomPeer > max) || (randomPeer < min)) && (useAnd == 1)))
1953
1953 { 1954 {
1954 randomPeer = 1955 randomPeer =
1955 GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, pg->total); 1956 GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, pg->total);