GeopJr / Collision

Check hashes for your files - A GUI tool to generate, compare and verify MD5, SHA-1, SHA-256, SHA-512, Blake3, CRC32 & Adler32 hashes.
https://collision.geopjr.dev
BSD 2-Clause "Simplified" License
146 stars 15 forks source link

fix(spec): multithreading array access fail #194

Closed GeopJr closed 7 months ago

GeopJr commented 7 months ago

Sometimes specs would fail at random due to 'missing key' even though it shouldn't be. That was due to accessing a hash outside the thread.

Initializing all keys with an empty string outside mt, seems to prevent it