瀏覽代碼

for perf testing, paths are always 3 hops, not "3 or more"

svn:r1030
Roger Dingledine 20 年之前
父節點
當前提交
f6f9b1d94d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/or/onion.c

+ 3 - 0
src/or/onion.c

@@ -188,6 +188,9 @@ static int new_route_len(double cw, routerinfo_t **rarray, int rarray_len) {
 #ifdef TOR_PERF
   routelen = 2;
 #else
+  routelen = 3;
+#endif
+#if 0
   for(routelen = 3; ; routelen++) { /* 3, increment until coinflip says we're done */
     if (crypto_pseudo_rand_int(255) >= cw*255) /* don't extend */
       break;