From: Nick Mathewson Date: Sat, 14 Jun 2003 01:29:16 +0000 (+0000) Subject: Do not use pseudorandom nonces X-Git-Tag: tor-0.0.2pre8~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9af577fee35201c93db343f95b125bf068a10113;p=thirdparty%2Ftor.git Do not use pseudorandom nonces svn:r321 --- diff --git a/src/or/connection_or.c b/src/or/connection_or.c index f9c3701496..8de0b2a2f3 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -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;