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

svn:r1030
This commit is contained in:
Roger Dingledine 2004-01-30 23:43:17 +00:00
parent e05d39d1af
commit f6f9b1d94d

View File

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