diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-16 15:28:16 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2017-03-19 15:34:46 +0100 |
commit | b42320fdd8354b7fee47b52b68d730911e57e534 (patch) | |
tree | 693f32855fe14320353b934b15c1b757bb0f62f4 /src/hashtables.h | |
parent | 0cd737b5c78f6ec118e6aaea249ba22ced6cfd53 (diff) |
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.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/hashtables.h')
-rw-r--r-- | src/hashtables.h | 1 |
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; }; |