@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/string.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jarenjs/core",
3
3
  "private": false,
4
- "version": "0.46.4",
4
+ "version": "0.46.5",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "types": "./dist/types/index.d.ts",
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 * 0x01000193) >>> 0;
336
+ hash = Math.imul(hash, 0x01000193) >>> 0;
337
337
  }
338
338
  return hash;
339
339
  }