From f6f9b1d94da78b5252d804ea3918dc91ad158c65 Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 30 Jan 2004 23:43:17 +0000 Subject: [PATCH] for perf testing, paths are always 3 hops, not "3 or more" svn:r1030 --- src/or/onion.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/or/onion.c b/src/or/onion.c index 123adc6e44..b80734cfb0 100644 --- a/src/or/onion.c +++ b/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;