Détail du package

jenkins-hash-lookup3

xwcoder9ISC1.0.0

A implementation of jenkins hash functions

jenkins hash, lookup, lookup3, hashlittle

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
}

finalMix (a: number, b: number, c: number): MixReturn