This commit is contained in:
10
node_modules/licia/strHash.js
generated
vendored
Normal file
10
node_modules/licia/strHash.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
exports = function(str) {
|
||||
var hash = 5381;
|
||||
var i = str.length;
|
||||
while (i) {
|
||||
hash = (hash << 5) + hash + str.charCodeAt(--i);
|
||||
}
|
||||
return hash >>> 0;
|
||||
};
|
||||
|
||||
module.exports = exports;
|
||||
Reference in New Issue
Block a user