I'm looking for a high-speed hashing function with good (i.e near uniform) distribution for use in a hash table implementation.
The hash table will be used exclusively for storing values with an integer key.
Can i just use the lower few bits of the integer as the hash?
e.g int key = n & 15; and create an array with 16 slots to store them.
Any recommendations?