Skip to content

Instantly share code, notes, and snippets.

@perusio
Created November 18, 2014 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perusio/77779624f9c6114bb189 to your computer and use it in GitHub Desktop.
Save perusio/77779624f9c6114bb189 to your computer and use it in GitHub Desktop.
Using Murmurhash2
-- Require the library.
mmh2 = require "murmurhash2"'
-- Returns a hex representation of the hash.
string.format('%x', mmh2('<string>'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment