murmurhash1 digest.
puts MurmurHash1::digest('mruby') #=> "\xdc\x1f\x3f\x3f"
Write in build_config.rb
MRuby::Build.new do |conf|
conf.gem :github => 'ksss/mruby-murmurhash1', :branch => 'master'
end
mgem add mruby-murmurhash1
and exec.
rake clean
rake test
rake
mruby -e 'puts MurmurHash1::digest("mruby")'