Finalized compile-time hashing function.