]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Reduce multiplier to 3, per teor's recommendation on #20534
authorNick Mathewson <nickm@torproject.org>
Mon, 7 Nov 2016 15:55:33 +0000 (10:55 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 7 Nov 2016 16:01:21 +0000 (11:01 -0500)
(Three _is_ a good number for anonymity!)

src/or/directory.c

index ee42e2cd9b2a1c50ffe07def19b33eae6c25401a..1f399818c46492e658357d666038e6d62039f4da 100644 (file)
@@ -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;