[or-cvs] Do not use pseudorandom nonces

Nick Mathewson nickm at seul.org
Sat Jun 14 01:29:18 UTC 2003


Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/tmp/cvs-serv3359/src/or

Modified Files:
	connection_or.c 
Log Message:
Do not use pseudorandom nonces

Index: connection_or.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_or.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- connection_or.c	28 May 2003 06:19:58 -0000	1.29
+++ connection_or.c	14 Jun 2003 01:29:16 -0000	1.30
@@ -516,7 +516,7 @@
     conn->address = strdup(router->address);
 
     /* generate a nonce */
-    retval = crypto_pseudo_rand(8, conn->nonce);
+    retval = crypto_rand(8, conn->nonce);
     if (retval) { /* error */
       log(LOG_ERR,"Cannot generate a nonce.");
       return -1;



More information about the tor-commits mailing list