[or-cvs] for perf testing, paths are always 3 hops, not "3 or more"

Roger Dingledine arma at seul.org
Fri Jan 30 23:43:20 UTC 2004


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or

Modified Files:
	onion.c 
Log Message:
for perf testing, paths are always 3 hops, not "3 or more"


Index: onion.c
===================================================================
RCS file: /home/or/cvsroot/src/or/onion.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- onion.c	30 Jan 2004 21:32:40 -0000	1.120
+++ onion.c	30 Jan 2004 23:43:17 -0000	1.121
@@ -188,6 +188,9 @@
 #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;



More information about the tor-commits mailing list