Browse Source

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

svn:r1030
Roger Dingledine 20 years ago
parent
commit
f6f9b1d94d
1 changed files with 3 additions and 0 deletions
  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;