From ee2706b5375244deafab38f3b77a60072e44bff6 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Wed, 18 Oct 2023 22:00:44 +0530 Subject: [PATCH] use random source when shuffling --- packages/scripts/chpaper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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