aboutsummaryrefslogtreecommitdiff
path: root/src/ext/ed25519/ref10/randombytes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ext/ed25519/ref10/randombytes.h')
-rw-r--r--src/ext/ed25519/ref10/randombytes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ext/ed25519/ref10/randombytes.h b/src/ext/ed25519/ref10/randombytes.h
new file mode 100644
index 0000000000..fc709fcefc
--- /dev/null
+++ b/src/ext/ed25519/ref10/randombytes.h
@@ -0,0 +1,4 @@
+/* Added for Tor. */
+#include "crypto.h"
+#define randombytes(b, n) \
+ (crypto_strongest_rand((b), (n)))