From 49be1d201865f9895c627aaeb0755c81e16e57b3 Mon Sep 17 00:00:00 2001 From: deraadt Date: Fri, 27 Dec 2013 22:34:40 +0000 Subject: [PATCH] create a seed file for the bootloader in /etc/random.seed --- etc/rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/etc/rc b/etc/rc index 8a52487d947..a9aabb5dc22 100644 --- a/etc/rc +++ b/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.414 2013/12/27 22:33:27 deraadt Exp $ +# $OpenBSD: rc,v 1.415 2013/12/27 22:34:40 deraadt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -107,6 +107,9 @@ random_seed() chmod 600 /var/db/host.random # ... and create a future seed dd if=/dev/random of=/var/db/host.random bs=65536 count=1 + # and create a seed file for the boot-loader + dd if=/dev/random of=/etc/random.seed bs=512 count=1 + chmod 600 /etc/random.seed } > /dev/null 2>&1 } -- 2.20.1