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 91da8d374b
commit c8b2d6951b
Signed by: networkException
GPG key ID: E3877443AE684391

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 {