Talk:cpp/numeric/random/random device

Remedy of std::random_device returning the same value during runtime.
Ok, since my addition wasn't welcome on the page, I put it here in the talk so other people doesn't have to reinvent the wheel:

At some implementations, a std::random_device variable could return the same result at calling [ during the run of the application. Declaring it with the specifier would help.


 * If I interpret what you're saying correctly, you want to point out that when std::random_device is implemented as PRNG, it behaves like any other PRNGs such as std::mt19937. I wouldn't be using random_device on such an implementation at all, because the engine is unknown, but if you think it's worth noting on a reference, I've put together a note, but I am still not happy about it, since getting more than one number from std::random_device goes against the intended usage. --Cubbi (talk) 08:32, 1 December 2014 (PST)