From 9957581e60297fd9e0bd4d1b0fae43d94adba172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Tue, 2 Oct 2018 16:14:44 +0000 Subject: [PATCH] Don't use crypto_shorthash_keygen() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bind.c b/src/bind.c index 28c462b..f1df576 100644 --- a/src/bind.c +++ b/src/bind.c @@ -159,7 +159,7 @@ gt_bind(int argc, char **argv) } unsigned char hashkey[crypto_shorthash_KEYBYTES]; - crypto_shorthash_keygen(hashkey); + randombytes_buf(hashkey, sizeof(hashkey)); struct mud *mud = mud_create((struct sockaddr *)&bind_addr);