diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2013-03-25 14:58:29 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2013-03-25 14:58:29 +0000 |
commit | 9e5b1f06effb0aefc0381cf2da1fcb10faa96101 (patch) | |
tree | d9a300b786ffd9ec6ee6810536bc83e48affbff5 /sys/kern | |
parent | cf815072e80de0903ef62b9259ecacf830a4b414 (diff) |
reseed the random pool with 'dmesg' when more devices are attached
from hshoexer@; ok tedu@, "looks good" deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/init_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 33ee8571bc1..7f87fd6f1c1 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.186 2013/01/01 19:39:50 jasper Exp $ */ +/* $OpenBSD: init_main.c,v 1.187 2013/03/25 14:58:28 markus Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -350,6 +350,8 @@ main(void *framep) /* Configure the devices */ cpu_configure(); + random_hostseed(); + /* Configure virtual memory system, set vm rlimits. */ uvm_init_limits(p); |