瀏覽代碼

Reduce multiplier to 3, per teor's recommendation on #20534

(Three _is_ a good number for anonymity!)
Nick Mathewson 7 年之前
父節點
當前提交
e51f105c41
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/or/directory.c

+ 1 - 1
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;