fixed random collisions
This commit is contained in:
parent
6c4ce4b4c9
commit
676a7527fb
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue