diff options
author | Thomas Gschwantner <tharre3@gmail.com> | 2019-12-08 04:35:50 +0100 |
---|---|---|
committer | Thomas Gschwantner <tharre3@gmail.com> | 2019-12-11 06:22:17 +0100 |
commit | 360b9c8c8b4c4364b755dc0935f05e4ba4429cb0 (patch) | |
tree | f3012f1bf3e61239ec5be18edcb67780f5e2554e /random.h | |
parent | Allow /32 and /128 to be omitted in ip= keys (diff) | |
download | wg-dynamic-360b9c8c8b4c4364b755dc0935f05e4ba4429cb0.tar.xz wg-dynamic-360b9c8c8b4c4364b755dc0935f05e4ba4429cb0.zip |
Use siphash for hashtables
Diffstat (limited to 'random.h')
-rw-r--r-- | random.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |