summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog2
-rw-r--r--debian/hurd.postinst2
2 files changed, 3 insertions, 1 deletions
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