aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/include/prng.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/include/prng.h')
-rw-r--r--src/kernel/include/prng.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kernel/include/prng.h b/src/kernel/include/prng.h
new file mode 100644
index 0000000..0a9e036
--- /dev/null
+++ b/src/kernel/include/prng.h
@@ -0,0 +1,9 @@
+#include <stdint.h>
+#include <stddef.h>
+
+void prng_add_entropy(const uint8_t* ptr, size_t nbytes); // add entropy to generator
+
+uint16_t prng_word();
+void prng_bytes(uint8_t* out, size_t nbytes); // generate some bytes
+
+/* vim: set ts=4 sw=4 tw=0 noet :*/