Check if /dev/urandom exists
This commit is contained in:
@@ -55,7 +55,7 @@ fi
|
||||
|
||||
# Create RANDFILE if it does not exist
|
||||
RANDFILE=${RANDFILE-${HOME:?}/.rnd}
|
||||
if [ ! -f "${RANDFILE:?}" ]; then
|
||||
if [ ! -f "${RANDFILE:?}" ] && [ -c /dev/urandom ]; then
|
||||
dd if=/dev/urandom of="${RANDFILE:?}" bs=256 count=1 >/dev/null 2>&1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user