asciify-engine 1.0.20 → 1.0.22

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/dist/index.js CHANGED
@@ -372,7 +372,7 @@ function lerp(a, b, t) {
372
372
  function hash2(ix, iy) {
373
373
  let n = ix * 127 + iy * 311;
374
374
  n = n >> 13 ^ n;
375
- return (n * (n * n * 15731 + 789221) + 1376312589 & 2147483647) / 1073741823 - 1;
375
+ return (n * (n * n * 15731 + 789221) + 1376312589 & 2147483647) / 2147483647;
376
376
  }
377
377
  function vnoise(x, y) {
378
378
  const ix = Math.floor(x), iy = Math.floor(y);