dominictarr/crypto-browserify — pull request #84 by plediii (2014-12-15 21:40:22+00:00)
Title: Implement pseudoRandomBytes.

From what I've read, `pseudoRandomBytes` should implement the same PRNG as `randomBytes`, except `randomBytes` should throw an exception with the accumulated entorpy pool is not large enough.

In the browser, it looks like `getRandomValues` will not throw an exception based on the condition of the entropy pool, so it could be used for `pseudoRandomBytes`.

I'm assuming the fallback to `randomBytes` in `rng.js` is the fallback for node. I'm making prng fallback to `pseudoRandomBytes` in this case.