From 6c50033dfb7a4dc7094d96f9339459b08b4efac9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Sun, 8 Mar 2015 11:10:45 +0100 Subject: Add PRNG --- src/kernel/include/prng.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/kernel/include/prng.h (limited to 'src/kernel/include') 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 +#include + +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 :*/ -- cgit v1.2.3