projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56223c1
)
-add logging for randomized delays
author
Christian Grothoff
<christian@grothoff.org>
Thu, 8 Dec 2011 12:47:23 +0000
(12:47 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 8 Dec 2011 12:47:23 +0000
(12:47 +0000)
src/nse/gnunet-service-nse.c
patch
|
blob
|
history
diff --git
a/src/nse/gnunet-service-nse.c
b/src/nse/gnunet-service-nse.c
index ef9e474c796a949503e02e2c8b5929942736d6fb..06b459beb034866bac9163460ce1881c42075670 100644
(file)
--- a/
src/nse/gnunet-service-nse.c
+++ b/
src/nse/gnunet-service-nse.c
@@
-438,6
+438,11
@@
get_delay_randomization (uint32_t matching_bits)
return GNUNET_TIME_UNIT_ZERO;
d = get_matching_bits_delay (matching_bits - 1);
i = (uint32_t) (d / (double) (hop_count_max + 1));
+#if DEBUG_NSE
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Randomizing flood using latencies up to %u ms\n",
+ (unsigned int) i);
+#endif
ret.rel_value = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, i + 1);
return ret;
#else