summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjwd <jwd@FreeBSD.org>2000-10-18 05:29:26 +0000
committerjwd <jwd@FreeBSD.org>2000-10-18 05:29:26 +0000
commit70682758733b12b5b348972256a3678d3d5c8202 (patch)
tree0564dce93c7c5ebee551886dde2d6c348bafb68b /etc
parent2754d6b4a3ae34fa1afd240a26a5d38df1f95b5c (diff)
downloadFreeBSD-src-70682758733b12b5b348972256a3678d3d5c8202.zip
FreeBSD-src-70682758733b12b5b348972256a3678d3d5c8202.tar.gz
Use dd to better block the data being sent to /dev/random.
Note: I am not redirecting stdout so that the amount of data being transferred can be seen (22k and 576k currently).
Diffstat (limited to 'etc')
-rw-r--r--etc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index d73a8e8..ca91c42 100644
--- a/etc/rc
+++ b/etc/rc
@@ -203,10 +203,10 @@ yes)
# Entropy below is not great,
# but better than nothing.
(ps -gauxwww; iostat; vmstat; sysctl -a;
- dmesg) > /dev/random 2> /dev/random
+ dmesg) | /bin/dd of=/dev/random bs=8k
( for i in /etc /var/run ; do
cd $i ; ls -al ; cat *
- done ) > /dev/random 2> /dev/random
+ done ) | /bin/dd of=/dev/random bs=8k
fi
fi
;;
OpenPOWER on IntegriCloud