aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2017-08-26 18:16:11 +0200
committerTharre <tharre3@gmail.com>2017-08-26 23:10:09 +0200
commit3d81d35fa2225d434b14c5e6230a2b5b9bedfe6e (patch)
treef1a63e437e9d99c0cec9969ce9bc56eacb50cb7d /src/util.h
parent5d35df94d62b76cb55c14e70b079ceb2c400b326 (diff)
downloadredo-3d81d35fa2225d434b14c5e6230a2b5b9bedfe6e.tar.gz
redo-3d81d35fa2225d434b14c5e6230a2b5b9bedfe6e.tar.xz
redo-3d81d35fa2225d434b14c5e6230a2b5b9bedfe6e.zip
Use the proper RNG called PCG instead of rand()
Fixes #7.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
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 <stddef.h>
+#include <stdint.h>
#include <stdio.h>
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