# shellcheck shell=sh [ -r /proc/sys/kernel/random/poolsize ] && \ read -r bytes < /proc/sys/kernel/random/poolsize ( umask 077 dd if=/dev/urandom of="${SEED:-/var/lib/misc/random-seed}" \ count=1 bs="${bytes:-512}" )