INSECURE Math.random-based fallback for crypto.getRandomValues. This is NOT cryptographically secure and must only be used in environments where no CSPRNG is available (e.g., unit tests in constrained runtimes).
Math.random
crypto.getRandomValues
INSECURE
Math.random-based fallback forcrypto.getRandomValues. This is NOT cryptographically secure and must only be used in environments where no CSPRNG is available (e.g., unit tests in constrained runtimes).