问题
I am looking for a java port of this file, Jenkins Hash in C
回答1:
This looks like one.
Though, by the looks of description on the Wikipedia article you could port it yourself without too much trouble.
回答2:
Hsieh's hash is even better. I don't know of a java implementation - i'm writing one right now.
回答3:
At Github there is g414-hash project which includes hash functions you might want to use, including jenkins, murmur, hsieh and cwow. It also has bloom filter implementation for which hashes can be used.
回答4:
A duck duck go searched reveals this: http://www.java2s.com/Code/Java/Development-Class/JenkinsHash.htm
回答5:
Apache licensed - http://people.apache.org/~yonik/code/hash/Hash.html
来源:https://stackoverflow.com/questions/587884/java-port-of-hash-by-jenkins