From c4cbd770cf2a9c78f0a88c79a2b574958c074997 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 6 Nov 2011 02:30:58 +0100 Subject: generate an initial pseudo-random seed. --- debian/changelog | 2 +- debian/hurd.postinst | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 056813af..913f928f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -18,7 +18,7 @@ hurd (20111030-1) UNRELEASED; urgency=low set on /dev/u?random-hurd instead of random-egd on /dev/u?random. (Closes: bug#637231) * debian/hurd.{postinst,prerm}: Handle alternative for /dev/u?random, - default to u?random-hurd. + default to u?random-hurd, generate an initial pseudo-random seed. * debian/hurd.lintian-overrides: Override warnings about the /dev/u?random mangling. * debian/local/cdrom.h: Add header for basic CD-ROM ioctl support. diff --git a/debian/hurd.postinst b/debian/hurd.postinst index f796a39a..e512f5cd 100644 --- a/debian/hurd.postinst +++ b/debian/hurd.postinst @@ -68,5 +68,7 @@ if [ "$1" = configure ] && [ "$2" ]; then /usr/lib/hurd/setup-translators -K update-alternatives --install /dev/random random /dev/random-hurd 10 \ --slave /dev/urandom urandom /dev/urandom-hurd + + [ -f /var/spool/random-seed ] || dd < /dev/urandom > /var/spool/random-seed bs=1 count=600 fi -- cgit v1.2.3