Main: Sort hashed files before iterating

To ensure the start flag working properly it is required to have a
deterministic order to start with the same vector of hashed files each
run.
This commit is contained in:
networkException 2022-04-22 02:44:12 +02:00
parent 7c815712ae
commit 402ffb2deb
No known key found for this signature in database
GPG key ID: C1F2658DC370C8FC

View file

@ -64,6 +64,8 @@ fn run() -> Result<()> {
let pool = ThreadPoolBuilder::new().num_threads(args.jobs as usize).build().unwrap();
hashed_files.sort();
let hashed_files_len = hashed_files.len();
if start != 0 {