Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jenkins-hash

iefserge12MIT1.0.1

Jenkins hash function

jenkins-hash, hash, jenkins

readme

SYNOPSIS

JavaScript port of lookup3.c hash function by Bob Jenkins

http://www.burtleburtle.net/bob/c/lookup3.c

USAGE

var hash = require('./').hashlittle;
hash(new Uint8Array([1, 2, 3]), 0xdeadbeef); // 0x271b32ed

hashlittle(buf, initval = 0)

buf - buffer to hash

initval - any 32bit integer number

return - 32bit hash