Hi Agner, In your description of the URNG classes you mention they are thread-safe and that each thread should have one instance that is initialised with a different seed e.g. by adding 1 to the seed for each new instance.
I was under the impression that this may be dangerous in certain circumstances e.g. it may introduce inter-thread correlations that mess up statistics on aggregrating results across threads.
Isn't this why the creators of MT came up with dynamic creator for parallel computing work?
Anyway, it would be great if you could shed some light on this subject for me.
Thanks a lot,
Mike BTW - loved your work on optimisation |