Generic k-wise independent generic hasher for JavaScript
var kHash = require("k-hash")
var bins = new Array(8)
kHash("foo", bins)
console.log(bins)
kHash(15, bins)
console.log(bins)
kHash({"test": true}, bins)
console.log(bins)npm install k-hash
Hashes key into a collection of different bins. Each value in bins is a 32-bit unsigned integer
keyis the key to hashbinsis an array of values which get the output of the hash
(c) 2013 Mikola Lysenko. MIT License