summaryrefslogtreecommitdiff
path: root/include/trng.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trng.h')
-rw-r--r--include/trng.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/trng.h b/include/trng.h
index fe1c96825e..a35496c3fd 100644
--- a/include/trng.h
+++ b/include/trng.h
@@ -5,6 +5,8 @@
#ifndef __EC_INCLUDE_TRNG_H
#define __EC_INCLUDE_TRNG_H
+#include <sys/types.h>
+
/**
* Initialize the true random number generator.
*
@@ -19,4 +21,11 @@ void init_trng(void);
**/
uint32_t rand(void);
+/**
+ * Output len random bytes into buffer.
+ *
+ * Not supported on all platforms.
+ **/
+void rand_bytes(void *buffer, size_t len);
+
#endif /* __EC_INCLUDE_TRNG_H */