[Numpy-discussion] numpy.random.RandomState threadsafe?

Hoyt Koepke hoytak at gmail.com
Tue Mar 11 17:18:32 EDT 2008


This should be a really quick question.  Is a RandomState object
thread safe?  I'm wanting to use a common RandomState object in a
multithreaded program, and I need to know if it's necessary to protect
it with a lock (which wouldn't be difficult).

Thanks!
--Hoyt



More information about the NumPy-Discussion mailing list