dpnp.random.BitGenerator.lock

property

property BitGenerator.lock

The lock guarding the state of the bit generator.

Hold it to read or set state consistently while other threads use the bit generator. The lock is reentrant, so state can be read and set while holding it.