3 ms·
> “JavaScript lacks a secure random number generator.” > This is in fact not the case. window.crypto.getRandomValues() is a secure random number generator avai
by DanBC 14y ago
> “JavaScript lacks a secure random number generator.”
> This is in fact not the case. window.crypto.getRandomValues() is a secure random number generator available in JavaScript, and supported by major web browsers
That url points to a page that has a big green warning.
"This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes."
Note that having a PRNG available doesn't mean it's being used properly. (See Debian and OpenSSL)
- icebraining 14y agoIn the footer it also says that neither IE nor Opera support the feature, and Firefox only added it in version 21, which was released less than two weeks ago.