
please wait
|
|
|
|
|
|
mingw32-C++.exe --version
what GCC version does it say you are using? The release notes for GCC 4.8 mention the addition of hardware support to the RNG. I'm reaching here of course, this is a really weird issue and I'm not sure where to start.
|
|
7593 18342 29090 7070 17819 28567 6548 17296 28044 6025 |
18232 18235 18238 18241 18245 18248 18251 18255 18258 18261 |
|
|
True random number generator A random number generator that produces non-deterministic random numbers, if supported. Unlike the other standard generators, this is not meant to be an engine that generates pseudo-random numbers, but a generator based on stochastic processes to generate a sequence of uniformly distributed random numbers. Although, certain library implementations may lack the ability to produce such numbers and employ a random number engine to generate pseudo-random values instead. In this case, entropy returns zero. Notice that random devices may not always be available to produce random numbers (and in some systems, they may even never be available). This is signaled by throwing an exception derived from the standard exception on construction or when a number is requested with operator(). Unless the program really requires a stochastic process to generate random numbers, a portable program is encouraged to use an alternate pseudo-random number generator engine instead, or at least provide a recovery method for such exceptions. |
// note: demo only: the performance of many // implementations of random_device degrades sharply // once the entropy pool is exhausted. For practical use // random_device is generally only used to seed // a PRNG such as mt19937 |
In other words it is a replacement for srand(), |
time(nullptr)
:)