]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Do not use pseudorandom nonces
authorNick Mathewson <nickm@torproject.org>
Sat, 14 Jun 2003 01:29:16 +0000 (01:29 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 14 Jun 2003 01:29:16 +0000 (01:29 +0000)
svn:r321

src/or/connection_or.c

index f9c3701496cb7eebe3bf7dacbbff5c9e843c56c7..8de0b2a2f3899bc52b5de9155b9e7ca187deaa7d 100644 (file)
@@ -516,7 +516,7 @@ int or_handshake_server_process_auth(connection_t *conn) {
     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;