From 96b0c695d971745bf43180971c3a11e28ec79756 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 30 Mar 2022 21:59:44 -0500 Subject: [PATCH] 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. --- init.d/urandom.in | 8 +------- 1 file changed, 1 insertion(+), 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 ) }