FNV Hash for Crystal
Support bit
- 32bit
- 64bit
Add this to your application's shard.yml
:
dependencies:
cfnv:
github: moba1/cfnv
require "cfnv"
data = "😀😅😥"
p Cfnv.fnv1a(data.bytes, Cfnv::Parameter::Bit32.new)
- Fork it ( https://github.com/moba1/cfnv/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- moba1 - creator, maintainer