mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Do not use pseudorandom nonces
svn:r321
This commit is contained in:
parent
71b158bf2f
commit
9af577fee3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user