an implementation of Rendezvous hashing (highest random weight)