3 ms·
Yay! However, a few things that are a bit unfortunate: - It suggests that I use that entropy to seed a PRNG. No. It should be the PRNG. - Fill the buffer with
by lvh 12y ago
Yay! However, a few things that are a bit unfortunate:
- It suggests that I use that entropy to seed a PRNG. No. It should be the PRNG.
- Fill the buffer with "up to buflen random bytes"? I asked for n bytes. Please give me actually n bytes. If there's a way to get this wrong, people will get it wrong: the BSD socket API does the same thing and at least it has good reason. However, the wording seems to imply that if you use the "urandom" source, it won't do that?
- "It should not be used Monte Carlo simulations or for other probabilistic sampling applications.". Doesn't mention why. Sounds like "run out of entropy" FUD :-(
- mackal 12y agoIts more an example of using the wrong tool for the job. You don't use a sludge hammer to hammer a nail in. Monte Carlo simulations don't need CSPRNG.