summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-01-30 23:43:17 +0000
committerRoger Dingledine <arma@torproject.org>2004-01-30 23:43:17 +0000
commitf6f9b1d94da78b5252d804ea3918dc91ad158c65 (patch)
treec3a332e92a0388c7f5a9175ccb58cffa666af2f2
parente05d39d1af5f7b4321db6bd0265c814f4480488c (diff)
downloadtor-f6f9b1d94da78b5252d804ea3918dc91ad158c65.tar.gz
tor-f6f9b1d94da78b5252d804ea3918dc91ad158c65.zip
for perf testing, paths are always 3 hops, not "3 or more"
svn:r1030
-rw-r--r--src/or/onion.c3
1 files changed, 3 insertions, 0 deletions
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;