@f/hash-str
v1.0.0
Published
Simple, uniformly distributed 32-bit string hash
Downloads
14
Readme
hash-str
Simple, uniformly distributed, non-cryptographic (don't use this for anything security related!) 32-bit string hash.
Installation
$ npm install @f/hash-str
Usage
var hashStr = require('@f/hash-str')
hashStr('some string') // -> 32-bit hash of 'some string'
API
hashStr(str)
str
- The string you want to hash
Returns: 32-bit integer hash of str
.
License
MIT