Skip to content

Instantly share code, notes, and snippets.

@ArjanJ
Created June 29, 2018 03:04
Show Gist options
  • Save ArjanJ/5b61c93ab2763052f73c52aac1f6bd0e to your computer and use it in GitHub Desktop.
Save ArjanJ/5b61c93ab2763052f73c52aac1f6bd0e to your computer and use it in GitHub Desktop.
Bucklescript binding for MurmurHash algorithm
type t;
/**
* MurmurHash
* bs binding of https://www.npmjs.com/package/murmurhash
*
* Must `npm install murmurhash` first.
*
* Usage:
* let foo = MurmurHash.v3("thestringyouwannahash");
*/
[@bs.module] external murmurhash : string => string = "";
let v3 = murmurhash;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment