jenkins-hash-lookup3
v1.0.0
Published
A implementation of jenkins hash functions
Downloads
22
Maintainers
Readme
jenkins-hash-lookup3
A implementation of jenkins hash functions(loopup3 ).
[TOC]
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
}