summaryrefslogtreecommitdiffstats
path: root/util.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-08-04 14:04:08 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-08-04 14:04:08 -0400
commit25d1e5341b34db0855c2dd2823a2f2af94093803 (patch)
tree487a4e288212e577c9ad8f2214fd0185d11ba6f5 /util.h
parenta04e2f811d094f6641db4197388c267dff889b5c (diff)
downloadkd-forest-25d1e5341b34db0855c2dd2823a2f2af94093803.tar.xz
Use a repeatable cross-platform PRNG.
Diffstat (limited to 'util.h')
-rw-r--r--util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/util.h b/util.h
index 45b2450..9cb5013 100644
--- a/util.h
+++ b/util.h
@@ -17,4 +17,7 @@
void *xmalloc(size_t size);
void *xrealloc(void *ptr, size_t size);
+unsigned int xrand(unsigned int range);
+void xsrand(unsigned int seed);
+
#endif // UTIL_H