We can safely replace atomic_add() with atomic_inc()
[hashcat.git] / OpenCL / check_single_comp4_bs.c
index 6ec99d7..5c081c1 100644 (file)
@@ -1,3 +1,6 @@
 const u32 final_hash_pos = digests_offset + 0;
 
-mark_hash (plains_buf, d_return_buf, salt_pos, 0, final_hash_pos, gid, il_pos + slice);
+if (atomic_inc (&hashes_shown[final_hash_pos]) == 0)
+{
+  mark_hash (plains_buf, d_return_buf, salt_pos, 0, final_hash_pos, gid, il_pos);
+}