summaryrefslogtreecommitdiffstats
path: root/ssh-pkcs11-helper.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2010-02-27 17:28:05 +0100
committerDamien Miller <djm@mindrot.org>2010-02-27 17:28:05 +0100
commit09a24db2d7e89c2fe72c1754181b6cc6e62949d7 (patch)
treee085e388ad9d342cd90601c45e1e8b802d26bdbd /ssh-pkcs11-helper.c
parent - djm@cvs.openbsd.org 2010/02/26 20:33:21 (diff)
downloadopenssh-09a24db2d7e89c2fe72c1754181b6cc6e62949d7.tar.xz
openssh-09a24db2d7e89c2fe72c1754181b6cc6e62949d7.zip
- (djm) [ssh-pkcs11-helper.c ] Ensure RNG is initialised and seeded
Diffstat (limited to 'ssh-pkcs11-helper.c')
-rw-r--r--ssh-pkcs11-helper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ssh-pkcs11-helper.c b/ssh-pkcs11-helper.c
index 1684ab0c2..54786c62a 100644
--- a/ssh-pkcs11-helper.c
+++ b/ssh-pkcs11-helper.c
@@ -280,6 +280,8 @@ main(int argc, char **argv)
extern char *optarg;
extern char *__progname;
+ init_rng();
+ seed_rng();
__progname = ssh_get_progname(argv[0]);
log_init(__progname, log_level, log_facility, log_stderr);