2 * @fileoverview Defining the hashing function in one place.
3 * @author Michael Ficarra
8 //------------------------------------------------------------------------------
10 //------------------------------------------------------------------------------
12 const murmur = require("imurmurhash");
14 //------------------------------------------------------------------------------
16 //------------------------------------------------------------------------------
18 //------------------------------------------------------------------------------
20 //------------------------------------------------------------------------------
23 * hash the given string
24 * @param {string} str the string to hash
25 * @returns {string} the hash
28 return murmur(str).result().toString(36);
31 //------------------------------------------------------------------------------
33 //------------------------------------------------------------------------------
35 module.exports = hash;