05-urandom.sh 208 B

123456789
  1. # shellcheck shell=sh
  2. (
  3. msg 'updating random seed'
  4. : "${SEED:=/var/lib/misc/random-seed}"
  5. [ -c /dev/urandom ] && [ -f "${SEED}" ] && cat "${SEED}" > /dev/urandom \
  6. || error 'unable to set random seed'
  7. ) &