imneme / pcg-cpp

PCG — C++ Implementation
Apache License 2.0
735 stars 99 forks source link

Is this implementation thread safe? #32

Open dejunlin opened 6 years ago

dejunlin commented 6 years ago

Can anyone tell me if the current c++ implementation of the PCG random number generator thread safe?

lemire commented 6 years ago

@dejunlin Without answering your specific question, I'd say that random number generators, in general, should not be expected to be thread-safe. So you want to create one generator per thread.