SciPy

numpy.random.bit_generator.BitGenerator.lock

attribute

BitGenerator.lock