From c8b2d6951bfbbf3e9181becb84762985d0dd4dce Mon Sep 17 00:00:00 2001 From: networkException Date: Fri, 22 Apr 2022 02:44:12 +0200 Subject: [PATCH] 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. --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 00e21a9..5e07d05 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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 {