fixed random collisions

This commit is contained in:
leca 2023-02-07 00:10:20 +03:00
parent 6c4ce4b4c9
commit 676a7527fb
1 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,9 @@ mkdir shuffled;
for file in $to_shuffle; do for file in $to_shuffle; do
rand=$RANDOM rand=$RANDOM
while test -f "shuffled/$rand.${extension}"; do
rand=$RANDOM
done
mv ${file} shuffled/$rand.${extension} mv ${file} shuffled/$rand.${extension}
done done