mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
for perf testing, paths are always 3 hops, not "3 or more"
svn:r1030
This commit is contained in:
parent
e05d39d1af
commit
f6f9b1d94d
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user