Topic: Boost.random And thread safety
As it is known, boost:: random is not thread safe. Then if globally is boost:: random:: mt19937 gen (42); And from different flows simultaneously very often to cause uint32_t randVal = gen (); that that can happen? I see 2 dangers: 1) For simultaneous calls identical values will be always generated; 2) Happens undefined behavior and a call either "hangs up", or falls out with segmentation fault. My task - with the maximum productivity to receive pseudo-random numbers from gen.min () to gen.max (), quality of numbers not important. Therefore without are necessary to close it would not be desirable.