1.0.0 • Published 6 years ago
jenkins-hash-lookup3 v1.0.0
jenkins-hash-lookup3
A implementation of jenkins hash functions(loopup3 ).
Install
npm i jenkins-hash-lookup3 --save
Usage
import 'hashlittle' from 'jenkins-hash-lookup3'
const hashcode = hashlittle('赵丽颖否认产子')
API
hashlittle (k: string, initvalB: number = 0, initvalC: number = 0): HashReturn
interface HashReturn {
b: number
c: number
}
hashword (k: string, initvalB: number = 0, initvalC: number = 0): HashReturn
mix (a: number, b: number, c: number): MixReturn
interface MixReturn {
a: number,
b: number,
c: number
}
finalMix (a: number, b: number, c: number): MixReturn
1.0.0
6 years ago