quick-hash
Version:
Murmur hash optimized for performance, not collision avoidance.
26 lines (20 loc) • 1.19 kB
Markdown
# quick-hash
<!-- VDOC.badges travis; standard; npm; coveralls -->
<!-- DON'T EDIT THIS SECTION (including comments), INSTEAD RE-RUN `vdoc` TO UPDATE -->
[](https://travis-ci.org/vigour-io/quick-hash)
[](http://standardjs.com/)
[](https://badge.fury.io/js/quick-hash)
[](https://coveralls.io/github/vigour-io/quick-hash?branch=master)
<!-- VDOC END -->
<!-- VDOC.jsdoc quickHash -->
<!-- DON'T EDIT THIS SECTION (including comments), INSTEAD RE-RUN `vdoc` TO UPDATE -->
#### var hashOfKey = quickHash(key, seed)
Murmur hash optimized for performance, not collision avoidance.
- **key** (*string*) - the string to hash
- **seed** (*number*) - a seed for hashing
- **returns** (*string*) hashOfKey - A string of 5 to 7 alpha-numeric characters
<!-- VDOC END -->
```javascript
var hash = require('vigour-util/hash')
hash('Any sting in the world!!!') // '16hck72'
```