aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/hashtables.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2017-03-16 15:28:16 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2017-03-19 15:34:46 +0100
commitfc6856b5b9dc056e7a54436f1f7eb0b9a6f68895 (patch)
treee9cf000911d62752d98fce7b10d612264c281818 /src/hashtables.h
parenttimers: elide enable check (diff)
downloadwireguard-monolithic-historical-fc6856b5b9dc056e7a54436f1f7eb0b9a6f68895.tar.xz
wireguard-monolithic-historical-fc6856b5b9dc056e7a54436f1f7eb0b9a6f68895.zip
hashtables: get_random_int is now more secure, so expose directly
On 4.11, get_random_u32 now either uses chacha or rdrand, rather than the horrible former MD5 construction, so we feel more comfortable exposing RNG output directly. On older kernels, we fall back to something a bit disgusting.
Diffstat (limited to 'src/hashtables.h')
-rw-r--r--src/hashtables.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/hashtables.h b/src/hashtables.h
index c66780a..9fa47d5 100644
--- a/src/hashtables.h
+++ b/src/hashtables.h
@@ -24,7 +24,6 @@ struct wireguard_peer *pubkey_hashtable_lookup(struct pubkey_hashtable *table, c
struct index_hashtable {
DECLARE_HASHTABLE(hashtable, 10);
- siphash_key_t key;
spinlock_t lock;
};