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

2008-03-11 Thread Hoyt Koepke
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

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

2008-03-11 Thread Robert Kern
On Tue, Mar 11, 2008 at 4:18 PM, Hoyt Koepke [EMAIL PROTECTED] wrote: 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

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

2008-03-11 Thread Hoyt Koepke
Okay, thanks! I won't be using the multivariate_normal function in my code, so this should work fine. --Hoyt On Tue, Mar 11, 2008 at 3:00 PM, Robert Kern [EMAIL PROTECTED] wrote: On Tue, Mar 11, 2008 at 4:18 PM, Hoyt Koepke [EMAIL PROTECTED] wrote: This should be a really quick question.