Re:A Simple Hash for Perlin Noise
by ot on Tuesday May 10, 2022 @11:01PM
(#31335400)
For integer-size keys, a simple integer mixer will perform better than anything.
[ Parent
| on HN ]
What is an integer mixer?
A function that mixes the bits of an integer, it's a major component in all modern hash functions (they read a few bytes from the input, add them to the state, mix the state, and continue).
See for example http://jonkagstrom.com/bit-mixer-construction/index.html
When the input is an integer, they're very good hash functions on their own.