-eliminate special case, no justification for why it is there
authorChristian Grothoff <christian@grothoff.org>
Thu, 8 Dec 2011 12:51:14 +0000 (12:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 8 Dec 2011 12:51:14 +0000 (12:51 +0000)
src/nse/gnunet-service-nse.c

index 06b459beb034866bac9163460ce1881c42075670..5bf320ac463009bd3f9ea0e127c8ec34070bf414 100644 (file)
@@ -434,9 +434,7 @@ get_delay_randomization (uint32_t matching_bits)
   uint32_t i;
   double d;
 
-  if (matching_bits == 0)
-    return GNUNET_TIME_UNIT_ZERO;
-  d = get_matching_bits_delay (matching_bits - 1);
+  d = get_matching_bits_delay (matching_bits);
   i = (uint32_t) (d / (double) (hop_count_max + 1));
 #if DEBUG_NSE
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,