Do not use pseudorandom nonces

svn:r321
This commit is contained in:
Nick Mathewson 2003-06-14 01:29:16 +00:00
parent 71b158bf2f
commit 9af577fee3

View 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;