26 Aug
2012
26 Aug
'12
10:40 p.m.
AMDG On 08/25/2012 03:17 PM, Kraus Philipp wrote:
Hello,
I'm updating some algorithms and I need a tip for initialisation of the boost mersenne twister. I think the ctime is not a very good initialization. I think about a uuid value of the OS. I use also the non-deterministic generator, but I need an idea for the mersenne twister initialization.
Do you have an idea?
Well, you can use random_device to get a seed:
random_device rng;
mt19937 prgn1(rng()); // seed with one random value
std::vector