Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uint32_t jenkins_one_at_a_time_hash(char *key, size_t len)
- {
- uint32_t hash, i;
- for(hash = i = 0; i < len; ++i)
- {
- hash += key[i];
- hash += (hash << 10);
- hash ^= (hash >> 6);
- }
- hash += (hash << 3);
- hash ^= (hash >> 11);
- hash += (hash << 15);
- return hash;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement