summaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-12-08 10:54:42 -0500
committerNick Mathewson <nickm@torproject.org>2015-12-08 10:54:42 -0500
commit2259de0de726f3f617b2451d64f72f0d4d6bc0ae (patch)
tree6aeca7dc70a1231f8fd413d9572adbdf0a5c228f /src/ext/ed25519/ref10
parent943369f927967268cacd2067ccae0bc5f1c5835e (diff)
downloadtor-2259de0de726f3f617b2451d64f72f0d4d6bc0ae.tar.gz
tor-2259de0de726f3f617b2451d64f72f0d4d6bc0ae.zip
Always hash crypto_strongest_rand() along with some prng
(before using it for anything besides feeding the PRNG) Part of #17694
Diffstat (limited to 'src/ext/ed25519/ref10')
-rw-r--r--src/ext/ed25519/ref10/randombytes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ext/ed25519/ref10/randombytes.h b/src/ext/ed25519/ref10/randombytes.h
index fc709fcefc..8bf31631f0 100644
--- a/src/ext/ed25519/ref10/randombytes.h
+++ b/src/ext/ed25519/ref10/randombytes.h
@@ -1,4 +1,4 @@
/* Added for Tor. */
#include "crypto.h"
#define randombytes(b, n) \
- (crypto_strongest_rand((b), (n)))
+ (crypto_strongest_rand((b), (n)), 0)