@saulx/utils
Advanced tools
Comparing version 1.4.4 to 1.4.5
@@ -15,6 +15,6 @@ "use strict"; | ||
const hashNumber = (nr, hash = 5381) => { | ||
return ((hash * 33) ^ nr) * 5381; | ||
return ((hash * 33) ^ (nr * 33)) * 5381; | ||
}; | ||
const hashBool = (val, hash = 5381) => { | ||
return ((hash * 33) ^ (val === true ? 1 : 0)) * 5381 * 33; | ||
return ((hash * 33) ^ ((val === true ? 9907 : 4729) * 33)) * 5381 * 33; | ||
}; | ||
@@ -21,0 +21,0 @@ const nullHash = 5381 * 33; |
{ | ||
"name": "@saulx/utils", | ||
"main": "./dist/index.js", | ||
"version": "1.4.4", | ||
"version": "1.4.5", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "build": "tsc", |
Sorry, the diff of this file is not supported yet
49477