Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.
/ murmur Public archive

💬 An implementation of the non-cryptographic hash Murmur3

License

Notifications You must be signed in to change notification settings

gmcabrita/murmur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

130 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Murmur

Build Status Coverage Status Hex docs Hex Version License

Murmur is a pure Elixir implementation of the non-cryptographic hash Murmur3.

It aims to implement the x86_32bit, x86_128bit and x64_128bit variants.

Usage

Add Murmur as a dependency in your mix.exs file.

def deps do
  [{:murmur, "~> 1.0"}]
end

When you are done, run mix deps.get in your shell to fetch and compile Murmur.

Examples

iex> Murmur.hash_x86_32("b2622f5e1310a0aa14b7f957fe4246fa", 2147368987)
3297211900

iex> Murmur.hash_x86_128("some random data")
5586633072055552000169173700229798482

iex> Murmur.hash_x64_128([:yes, :you, :can, :use, :any, :erlang, :term!])
300414073828138369336317731503972665325

About

💬 An implementation of the non-cryptographic hash Murmur3

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages