3 ms·
std::random_device is part of C++11, and VC's implementation guarantees that it's crypto-secure.
by StephanTLavavej 12y ago
std::random_device is part of C++11, and VC's implementation guarantees that it's crypto-secure.
- tedunangst 12y agoThe problem is the standard doesn't guarantee that, so people will inevitably read the standard, decide that they can't actually trust random_device, and then build their own, much worse version.
- nly 12y agoAnd on Linux you can pass the string "/dev/urandom" to the constructor