4 ms·
I know you're being facetious because the OP isn't correct that deterministic PRNGs aren't useful, but any cryptographic application of a PRNG should be non-det
by vlovich123 9y ago
I know you're being facetious because the OP isn't correct that deterministic PRNGs aren't useful, but any cryptographic application of a PRNG should be non-deterministic.
- sevensor 9y agoWell, crypto isn't my specialty, so I always tread lightly when commenting about it. My hand-wavey understanding is that CSPRNGs are deterministic but not predictable, and that actual entropy is used to seed them. Going even further out on a limb, I think this is supposed to be the difference between /dev/urandom (CSPRNG) and /dev/random (actual entropy.) If I have that wrong, I'd appreciate correction by somebody in the know.
- vlovich123 9y agoYou're correct that CSPRNGs themselves are deterministic. I probably just misread what you were saying. As for dev/urandom vs /dev/random that's not really true. On Linux there's kind of a historical artifact of why they're different (blocking vs non-blocking API) but on OSX /dev/urandom is a symlink to /dev/random.
- Dylan16807 9y ago> but any cryptographic application of a PRNG should be non-deterministic You've just ruined most stream ciphers. That's not true at all.
- vlovich123 9y agoYou're right, I was just referring to the ability of controlling the seed value. In simulations you have a deterministic seed to be able to reproduce issues. For CSPRNG you want a non-deterministic random seed & so CSPRNG don't even offer an API to set the seed.