aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.d/urandom.in8
1 files changed, 1 insertions, 7 deletions
diff --git a/init.d/urandom.in b/init.d/urandom.in
index 8b7072c1..82020853 100644
--- a/init.d/urandom.in
+++ b/init.d/urandom.in
@@ -21,15 +21,9 @@ depend()
save_seed()
{
- local psz=1
-
- if [ -e /proc/sys/kernel/random/poolsize ]; then
- : $(( psz = $(cat /proc/sys/kernel/random/poolsize) / 4096 ))
- fi
-
( # sub shell to prevent umask pollution
umask 077
- dd if=/dev/urandom of="$urandom_seed" count=${psz} 2>/dev/null
+ dd if=/dev/urandom of="$urandom_seed" count=1 2>/dev/null
)
}