Commit 9af577fe authored by Nick Mathewson's avatar Nick Mathewson 🐘
Browse files

Do not use pseudorandom nonces


svn:r321
parent 71b158bf
Loading
Loading
Loading
Loading
+1 −1
Changes for src/or/connection_or.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;