From 3d81d35fa2225d434b14c5e6230a2b5b9bedfe6e Mon Sep 17 00:00:00 2001 From: Tharre Date: Sat, 26 Aug 2017 18:16:11 +0200 Subject: Use the proper RNG called PCG instead of rand() Fixes #7. --- src/util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index 159626d..64b39e3 100644 --- a/src/util.h +++ b/src/util.h @@ -10,6 +10,7 @@ #define __RUTIL_H__ #include +#include #include extern void __attribute__((noreturn)) die_(const char *err, ...); @@ -20,5 +21,6 @@ extern char *concat(size_t count, ...); extern unsigned char *hash_file(FILE *fp); extern void sha1_to_hex(const unsigned char *sha1, char *buf); extern void hex_to_sha1(const char *s, unsigned char *sha1); +extern uint32_t generate_seed(); #endif -- cgit v1.2.3-70-g09d2