fix deterministic authoritative RNG fallbacks

This commit is contained in:
2026-07-28 05:46:08 +00:00
parent 53ec5d543e
commit 43966ea1ef
11 changed files with 267 additions and 42 deletions
+14
View File
@@ -98,6 +98,20 @@ export default tseslint.config(
'@typescript-eslint/no-explicit-any': 'off',
},
},
{
files: ['app/game-engine/src/**/*.{ts,tsx}', 'packages/logic/src/**/*.{ts,tsx}'],
rules: {
'no-restricted-properties': [
'error',
{
object: 'Math',
property: 'random',
message:
'Authoritative game state must use an explicitly seeded RandUtil/LiteHashDRBG stream.',
},
],
},
},
{
files: ['**/*.js', '**/*.mjs', '**/*.cjs'],
rules: {