an implementation of Rendezvous hashing (highest random weight)
npm install rendezvous-hash
The shard weight is determined by Truncate-32(MD5(shardId + '\0' + key ))
, interpreted as a 32-bit little-endian integer.
In a future (incompatible) release, this might be replaced by a simpler, faster hash.
Selects a shard from the shards
object based on the key and returns it.