aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eslint.config.ts1
-rw-r--r--package.json2
-rw-r--r--pnpm-lock.yaml10
-rw-r--r--src/internal/mersenne.ts2
4 files changed, 7 insertions, 8 deletions
diff --git a/eslint.config.ts b/eslint.config.ts
index 05fe235f..4b522eec 100644
--- a/eslint.config.ts
+++ b/eslint.config.ts
@@ -153,7 +153,6 @@ const config: ReturnType<typeof tseslint.config> = tseslint.config(
// TODO @Shinigami92 2023-09-23: The following rules currently conflict with our code.
// Each rule should be checked whether it should be enabled/configured and the problems fixed, or stay disabled permanently.
- 'unicorn/better-regex': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/no-object-as-default-parameter': 'off',
'unicorn/prefer-export-from': 'off',
diff --git a/package.json b/package.json
index 7c52cf1a..718ab7e6 100644
--- a/package.json
+++ b/package.json
@@ -122,7 +122,7 @@
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jsdoc": "50.3.1",
"eslint-plugin-prettier": "5.2.1",
- "eslint-plugin-unicorn": "55.0.0",
+ "eslint-plugin-unicorn": "56.0.0",
"jiti": "1.21.6",
"npm-run-all2": "6.2.3",
"prettier": "3.3.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 1acea91e..abcddbd8 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -66,8 +66,8 @@ importers:
specifier: 5.2.1
eslint-plugin-unicorn:
- specifier: 55.0.0
+ specifier: 56.0.0
jiti:
specifier: 1.21.6
version: 1.21.6
@@ -1778,8 +1778,8 @@ packages:
eslint-config-prettier:
optional: true
- resolution: {integrity: sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==}
+ resolution: {integrity: sha512-aXpddVz/PQMmd69uxO98PA4iidiVNvA0xOtbpUoz1WhBd4RxOQQYqN618v68drY0hmy5uU2jy1bheKEVWBjlPw==}
engines: {node: '>=18.18'}
peerDependencies:
eslint: '>=8.56.0'
@@ -5372,7 +5372,7 @@ snapshots:
'@types/eslint': 9.6.1
eslint-config-prettier: 9.1.0([email protected]([email protected]))
dependencies:
'@babel/helper-validator-identifier': 7.24.7
'@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))
diff --git a/src/internal/mersenne.ts b/src/internal/mersenne.ts
index 351faa4e..82a0915b 100644
--- a/src/internal/mersenne.ts
+++ b/src/internal/mersenne.ts
@@ -171,7 +171,7 @@ export class MersenneTwister19937 {
this.initGenrand(19650218);
let i = 1;
let j = 0;
- let k = this.N > keyLength ? this.N : keyLength;
+ let k = Math.max(this.N, keyLength);
for (; k; k--) {
// mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525)) + init_key[j] + j;
this.mt[i] = this.addition32(