diff --git a/packages/scripts/chpaper.sh b/packages/scripts/chpaper.sh index f88bfc7..f3a7558 100755 --- a/packages/scripts/chpaper.sh +++ b/packages/scripts/chpaper.sh @@ -10,7 +10,7 @@ fi random_paper() { if [ -d "$DIR" ] ; then - find -L "${DIR}"/ -type f -regextype egrep -regex ".*\.(jpe?g|png)$" | shuf -n1 + find -L "${DIR}"/ -type f -regextype egrep -regex ".*\.(jpe?g|png)$" | shuf -n1 --random-source=/dev/urandom elif [ -f "$DIR" ] ; then echo "$DIR" fi