Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
David Goulet
Tor
Commits
9af577fe
Commit
9af577fe
authored
Jun 14, 2003
by
Nick Mathewson
⛰
Browse files
Do not use pseudorandom nonces
svn:r321
parent
71b158bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/or/connection_or.c
View file @
9af577fe
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment