News for hackers. Stuff that matters.
Re:Make your program slower with threads by mjb on Sunday December 07, 2014 @10:37AM (#8712443)
Yes, absolutely. That can be done using the global state (i.e. calling rand() or random()), or is probably better done by pulling from the system entropy pool (via /dev/urandom on Linux).
Re:Make your program slower with threads by mbq on Sunday December 07, 2014 @10:44AM (#8712470)
Still no good; you can get spurious correlations between rng outputs on each core. You need something like L'Ecuyer RNG streams.
Re:Make your program slower with threads by ScottBurson on Sunday December 07, 2014 @02:05PM (#8713168)
Well, using /dev/urandom is a vast improvement over doing nothing.

But your point is well taken. People doing serious Monte Carlo simulations should probably use a more sophisticated RNG.