From 67f684733f60f66479854a2867b953de731e71b2 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Thu, 17 Oct 2024 20:50:29 +1100 Subject: Seed RNG when starting up sshd-auth. Makes builds configured --without-openssl work again since otherwise the first use of the RNG comes after the sandbox init and it can't open /dev/random. --- sshd-auth.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sshd-auth.c b/sshd-auth.c index 986052cd3..bb694dd4a 100644 --- a/sshd-auth.c +++ b/sshd-auth.c @@ -472,6 +472,8 @@ main(int ac, char **av) saved_argv[i] = xstrdup(av[i]); saved_argv[i] = NULL; + seed_rng(); + #ifndef HAVE_SETPROCTITLE /* Prepare for later setproctitle emulation */ compat_init_setproctitle(ac, av); -- cgit v1.2.3