aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2022-03-30 21:59:44 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2022-03-30 22:08:10 -0500
commit96b0c695d971745bf43180971c3a11e28ec79756 (patch)
treedeaf5985b3aec7bde0c78e04360a479e327e225d /init.d
parent0fb11190fa5911f6f9c20c38e74a664826157a34 (diff)
init.d/urandom.in: drop the use of the psz variable
Since this service is now *bsd only, we don't need to worry about reading this value from /proc/sys.
Diffstat (limited to 'init.d')
-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
)
}