numpy/numpy — pull request #5388 by sturlamolden (2014-12-23 15:23:13+00:00)
Title: BUG: Make RandomState.set_state and RandomState.get_state threadsafe

Parts of RandomState.set_state and RandomState.get_state are not thread safe when we allow the GIL to be released. Synchronize access with RandomState.lock.