▲ Create A Random Nonce String Using JavaScript at blog.nraboy.com▼1 up and 0 down, posted by nraboy 3538 days ago 1 comment
iamdanfox 3538 days ago. link 2 points ▲ ▼This looks good for demo code or illustrations, but I'd be concerned about using the stock Math.random() for serious applications. Instead, browsers are introducing support for `Window.crypto` [1] and on the server you have the real `crypto` package [2]. [1]: https://developer.mozilla.org/en-US/docs/Web/API/Crypto [2]: https://iojs.org/api/crypto.html#crypto_crypto_randombytes_size_callback