murmurhash2 digest in mruby.
C Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
LICENSE.txt
README.md
mrbgem.rake

README.md

mruby-murmurhash2

murmurhash2 digest.

puts MurmurHash2::digest('mruby') #=> "\xda\x2a\x7f\xca"

Installation

use github repository

Write in build_config.rb

MRuby::Build.new do |conf|
  conf.gem :github => 'ksss/mruby-murmurhash2', :branch => 'master'
end

or use mgem

mgem add mruby-murmurhash2

build

and exec.

rake clean
rake test
rake
mruby -e 'puts MurmurHash2::digest("mruby")'

See also

https://sites.google.com/site/murmurhash/