20 Dec
2012
20 Dec
'12
9:38 p.m.
Dear Philipp,
On Thu, 20 Dec 2012 17:26:41 +0100
Philipp Kraus
I'm using boost::random_device & boost::mt19937 for creating random numbers. I would like to use both within different threads, are both object thread-safe, so I can use it without any thread locking?
I am not sure if boost random number generators are thread save. In doubt, you may consider to switch to TRNG, see http://numbercrunch.de/trng/ . Heiko -- -- Number Crunch Blog @ http://numbercrunch.de -- Cluster Computing @ http://www.clustercomputing.de -- Heiko Bauke @ http://www.mpi-hd.mpg.de/personalhomes/bauke