jenkins-hash-lookup3

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i jenkins-hash-lookup3

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

23.4 kB

Total Files

6

Last publish

Collaborators

  • creep