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....
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);