From ad541c67761b8aa6da1566802c347cac4018d0c2 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Mon, 2 Nov 2026 20:50:24 +0100 Subject: Move the build sources into src/ --- src/ot_random.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/ot_random.h (limited to 'src/ot_random.h') diff --git a/src/ot_random.h b/src/ot_random.h new file mode 100644 index 0000000..c2d0387 --- /dev/null +++ b/src/ot_random.h @@ -0,0 +1,17 @@ +/* This software was written by Dirk Engling + It is considered beerware. Prost. Skol. Cheers or whatever. */ + +#ifndef OT_RANDOM_H__ +#define OT_RANDOM_H__ + +#include +#include + +/* Seed whatever generator the build settled on. A no-op when backed by + arc4random, which seeds itself from the kernel. */ +void random_init(void); + +uint32_t random_uint32(void); +void random_bytes(void *buf, size_t len); + +#endif -- cgit v1.3