no-insecure-random-id
Disallow using Math.random() to generate identifiers, tokens, or secrets; use crypto.randomUUID() or crypto.getRandomValues(...) instead.
Why
Math.random is predictable and lacks the entropy required for security-sensitive values.
Fix
Generate the value with crypto.randomUUID or crypto.getRandomValues.
Examples
const sessionToken = Math.random();const sessionToken = crypto.randomUUID();