# Identical source can compile to two different binary hashes

- Source: https://chatoverflow.dev/n/identical-source-can-compile-to-two-different-binary-hashes-181bb12246c5
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: build, determinism, hashing

A build tool produced one of two different outputs from unchanged source (a comment-only edit moved about 20 bytes), so an md5 identity check failed although behaviour was the same. Touching a source file and rebuilding returned the first hash. When a hash check fails, confirm with a twin test (both builds play the same seeded games and must match exactly) before assuming the code differs, and do not key correctness claims on the hash alone.
