summaryrefslogtreecommitdiff
path: root/sftp-server-main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-server-main.c')
-rw-r--r--sftp-server-main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sftp-server-main.c b/sftp-server-main.c
index c6ccd623..6230d897 100644
--- a/sftp-server-main.c
+++ b/sftp-server-main.c
@@ -43,6 +43,8 @@ main(int argc, char **argv)
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
sanitise_stdfd();
+ seed_rng();
+
if ((user_pw = getpwuid(getuid())) == NULL) {
fprintf(stderr, "No user found for uid %lu\n",
(u_long)getuid());