Skip to content

Instantly share code, notes, and snippets.

@perusio
Created November 18, 2014 09:51
Show Gist options
  • Select an option

  • Save perusio/77779624f9c6114bb189 to your computer and use it in GitHub Desktop.

Select an option

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