4 ms·
The potential for duplicates is at odds with the statement "best choice for cryptographically secure". As with anything security related, never roll your own im
by biot 14y ago
The potential for duplicates is at odds with the statement "best choice for cryptographically secure". As with anything security related, never roll your own implementation if you can at all help it.
- Dylan16807 14y agoThat aside, urandom won't actually have duplicates. Just don't truncate it to a tiny size. And as far as I'm concerned grabbing a chunk of urandom is using someone else's implementation.
- biot 14y agoThat's actually a good point I hadn't considered. Presumably /dev/urandom uses a CSPRNG implementation and 128 bits from that is just as good as 128 bits from any other CSPRNG source.