Project

mmh3

0.0
Low commit activity in last 3 years
No release in over a year
A pure Ruby implementation of MurmurHash3
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

Mmh3

Build Status Gem Version Documentation

A pure Ruby implementation of MurmurHash3.

Installation

Add this line to your application's Gemfile:

gem 'mmh3'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install mmh3

Usage

irb(main):001:0> require 'mmh3'
=> true
irb(main):002:0> Mmh3.hash32('Hello, world', seed: 3)
=> 1659891412
irb(main):003:0> Mmh3.hash128('Hello, world', seed: 8)
=> 87198040132278428547135563345531192982
irb(main):004:0> Mmh3.hash32('Hello, world')
=> 1785891924
irb(main):005:0> Mmh3.hash32('Hello, world', seed: 0)
=> 1785891924
irb(main):006:0>

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/mmh3.

License

The gem is available as open source under the terms of the MIT License.