use random source when shuffling
This commit is contained in:
parent
57eb81f104
commit
ee2706b537
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue