@jarenjs/core 0.46.4 → 0.46.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/string.js +1 -1
package/package.json
CHANGED
package/src/string.js
CHANGED
|
@@ -333,7 +333,7 @@ export function fnv1a(str, seed = FNV1A_OFFSET_BASIS) {
|
|
|
333
333
|
let hash = seed;
|
|
334
334
|
for (let i = 0; i < str.length; i++) {
|
|
335
335
|
hash ^= str.charCodeAt(i);
|
|
336
|
-
hash = (hash
|
|
336
|
+
hash = Math.imul(hash, 0x01000193) >>> 0;
|
|
337
337
|
}
|
|
338
338
|
return hash;
|
|
339
339
|
}
|