Is this a correct implementation of the Knuth multiplicative hash.
int hash(int v) { v *= 2654435761; return v >> 32; }
Does over
Might be late, but heres a Java Implementation of Knuth's Method :
For a hashtable of Size N :
public long hash(int key) { long l = 2654435769L; return (key * l >> 32) % N ; }