]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
for perf testing, paths are always 3 hops, not "3 or more"
authorRoger Dingledine <arma@torproject.org>
Fri, 30 Jan 2004 23:43:17 +0000 (23:43 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 30 Jan 2004 23:43:17 +0000 (23:43 +0000)
svn:r1030

src/or/onion.c

index 123adc6e4481bee8f61ee6505f4224d5e6c78400..b80734cfb07820950484e2826d1818d13504fc9d 100644 (file)
@@ -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;