jenkins-hash

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i jenkins-hash

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • iefserge