[tor-commits] [tor/maint-0.2.9] Reduce multiplier to 3, per teor's recommendation on #20534
nickm at torproject.org
nickm at torproject.org
Mon Nov 7 16:02:23 UTC 2016
commit e51f105c417aff1840126fddd11875fec84c86a9
Author: Nick Mathewson <nickm at torproject.org>
Date: Mon Nov 7 10:55:33 2016 -0500
Reduce multiplier to 3, per teor's recommendation on #20534
(Three _is_ a good number for anonymity!)
---
src/or/directory.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/or/directory.c b/src/or/directory.c
index ee42e2c..1f39981 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -3796,7 +3796,7 @@ next_random_exponential_delay(int delay, int max_delay)
/* How much are we willing to add to the delay? */
int max_increment;
- const int multiplier = 4; /* no more than quintuple. */
+ const int multiplier = 3; /* no more than quadruple the previous delay */
if (delay && delay < (INT_MAX-1) / multiplier) {
max_increment = delay * multiplier;
More information about the tor-commits
mailing list