k-hash
Generic k-wise independent generic hasher for JavaScript
Example
var kHash = var bins = 8 console console console
Install
npm install k-hash
require("k-hash")(key, bins)
Hashes key
into a collection of different bins. Each value in bins
is a 32-bit unsigned integer
key
is the key to hashbins
is an array of values which get the output of the hash
Credits
(c) 2013 Mikola Lysenko. MIT License