diff options
author | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-08 11:10:45 +0100 |
---|---|---|
committer | Alex Auvolat <alex.auvolat@ens.fr> | 2015-03-08 11:10:45 +0100 |
commit | 6c50033dfb7a4dc7094d96f9339459b08b4efac9 (patch) | |
tree | b3c8032d95620c2eb009273adb675c699b8a5a94 /src/kernel/include/prng.h | |
parent | 88636d28b812e425c51be2d4d24d16a504dae147 (diff) | |
download | kogata-6c50033dfb7a4dc7094d96f9339459b08b4efac9.tar.gz kogata-6c50033dfb7a4dc7094d96f9339459b08b4efac9.zip |
Add PRNG
Diffstat (limited to 'src/kernel/include/prng.h')
-rw-r--r-- | src/kernel/include/prng.h | 9 |
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 :*/ |