diff options
Diffstat (limited to 'numpy/random/dsfmt.pyx')
-rw-r--r-- | numpy/random/dsfmt.pyx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/random/dsfmt.pyx b/numpy/random/dsfmt.pyx index cd6d92153..ea77b7821 100644 --- a/numpy/random/dsfmt.pyx +++ b/numpy/random/dsfmt.pyx @@ -14,6 +14,8 @@ from .common cimport * from .distributions cimport bitgen_t from .entropy import random_entropy +__all__ = ['DSFMT'] + np.import_array() DEF DSFMT_MEXP = 19937 @@ -83,6 +85,14 @@ cdef class DSFMT: ``/dev/urandom`` (or the Windows analog) if available. If unavailable, a 32-bit hash of the time and process ID is used. + Attributes + ---------- + lock: threading.Lock + Lock instance that is shared so that the same bit git generator can + be used in multiple Generators without corrupting the state. Code that + generates values from a bit generator should hold the bit generator's + lock. + Notes ----- ``DSFMT`` provides a capsule containing function pointers that produce |