aboutsummaryrefslogtreecommitdiffstats
path: root/random.h
diff options
context:
space:
mode:
authorThomas Gschwantner <tharre3@gmail.com>2019-12-08 04:35:50 +0100
committerThomas Gschwantner <tharre3@gmail.com>2019-12-11 06:22:17 +0100
commit360b9c8c8b4c4364b755dc0935f05e4ba4429cb0 (patch)
treef3012f1bf3e61239ec5be18edcb67780f5e2554e /random.h
parentAllow /32 and /128 to be omitted in ip= keys (diff)
downloadwg-dynamic-360b9c8c8b4c4364b755dc0935f05e4ba4429cb0.tar.xz
wg-dynamic-360b9c8c8b4c4364b755dc0935f05e4ba4429cb0.zip
Use siphash for hashtables
Diffstat (limited to 'random.h')
-rw-r--r--random.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/random.h b/random.h
index 9654b2c..a6608da 100644
--- a/random.h
+++ b/random.h
@@ -6,8 +6,11 @@
#ifndef __RANDOM_H__
#define __RANDOM_H__
+#include <stdbool.h>
+#include <stddef.h>
#include <stdint.h>
+bool get_random_bytes(uint8_t *out, size_t len);
uint64_t random_u64();
uint64_t random_bounded(uint64_t bound);