add mutex "to be safe" (there will likely be a small performance hit, but this should be OK for us)
It is still better to have an instance of RandomGenerator in each thread.
Please register or sign in to comment
It is still better to have an instance of RandomGenerator in each thread.