[FEATURE] SizedFile Collection shuffle

This commit is contained in:
Gravita 2021-04-23 15:46:46 +07:00
parent 2def9c20d9
commit 2058e3f38b

View file

@ -116,6 +116,9 @@ public List<List<SizedFile>> sortFiles(List<SizedFile> files, int threads) {
result.get(minIndex).add(file);
sizes[minIndex] += file.size;
}
for(List<SizedFile> l : result) {
Collections.shuffle(l);
}
return result;
}