Commit Graph

3 Commits

Author SHA1 Message Date
Emily Stark
2413a8d3ed Use cryptographic PRNGs when available.
This means node's crypto.randomBytes on the server, and
window.crypto.getRandomValues on the client. If node's crypto.randomBytes throws
an exception, we fall back to crypto.pseudoRandomBytes. If
window.crypto.getRandomValues isn't supported by the browser, we fall back to
the alea generator that we had been using previously.
2013-09-25 15:53:04 -07:00
David Glasser
2185b21be5 random docs: feedback from review. 2013-02-13 14:41:31 -08:00
David Glasser
9a7ac87778 Document random package. 2013-02-13 00:42:05 -08:00