2 ms·
I read this part as describing that flaw: > The problem is that std::random_device is poorly specified, and inscrutable. > In theory, it should serve as an ab
by loeg 7y ago
I read this part as describing that flaw:
> The problem is that std::random_device is poorly specified, and inscrutable.
> In theory, it should serve as an abstraction over some external source of entropy. In practice, an implementation is allowed to use any deterministic random number engine to implement it, e.g. a Mersenne twister, and there is no way to find out. There is a member function std::random_device::entropy(), which is in theory there to detect such case, but it does not work in practice.
They go on to discuss ::entropy()'s flaws after that.