fix deterministic authoritative RNG fallbacks
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user