Access to a secure random source in a browser. Math.random is not acceptable for cryptographic operations. This module exports a consistent interface for modern browsers.
Access to a secure random source in a browser.
Math.random is not acceptable for cryptographic operations.
This module exports a consistent interface for modern browsers.
Some browsers only implement crypto.getRandomValues and not crypto.subtle.
If you need to have access to both, you should use randomValues. But if
you want to use some cryptographic fallback like MSRCrypto randomValuesOnly
is the preferred function.
Access to a secure random source in a browser. Math.random is not acceptable for cryptographic operations. This module exports a consistent interface for modern browsers.