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.
This commit is contained in:
Darren Tucker 2024-10-17 20:50:29 +11:00
parent c06c681aee
commit 67f684733f
No known key found for this signature in database

View File

@ -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);