From ac02943a4df338f28713e109cad7148801923c12 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 28 Dec 2013 02:51:08 +0000 Subject: Try to load entropy data from disk:/etc/random.seed, and additionally use a MD-supplied random function. Then, insert this into the ELF openbsd.randomdata of the kernel, so that it has entropy right from the start. Some help from jsing for the softraid aspects. Also tested by phessler --- sys/arch/alpha/stand/boot/boot.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/alpha/stand') diff --git a/sys/arch/alpha/stand/boot/boot.c b/sys/arch/alpha/stand/boot/boot.c index 648ddc9a8c6..5f22c1ff3b1 100644 --- a/sys/arch/alpha/stand/boot/boot.c +++ b/sys/arch/alpha/stand/boot/boot.c @@ -1,4 +1,4 @@ -/* $OpenBSD: boot.c,v 1.20 2011/06/05 21:49:36 miod Exp $ */ +/* $OpenBSD: boot.c,v 1.21 2013/12/28 02:51:06 deraadt Exp $ */ /* $NetBSD: boot.c,v 1.10 1997/01/18 01:58:33 cgd Exp $ */ /* @@ -57,6 +57,8 @@ paddr_t ptbr_save; int debug; +char rnddata[BOOTRANDOM_MAX]; /* XXX dummy */ + int main() { -- cgit v1.2.3