Reversing an integer hash function This is an integer hash function written by Thomas Wang: uint32_t hash6432shift(uint64_t key) { key = (~key) + (key << 18); key ^= key >> 31; key *= 21; key ^= key >> 11; key += key << 6; key ^= key >> 22; return 0xFFFFFFFF & key; } It hashes down a 64-bit input to a 32-bit output. It has good mixing: basic statistical analysis can show that it has reasonably goo
{{#tags}}- {{label}}
{{/tags}}