diff options
Diffstat (limited to 'numpy/random/threefry.pyx')
-rw-r--r-- | numpy/random/threefry.pyx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/random/threefry.pyx b/numpy/random/threefry.pyx index d008cd828..02911528b 100644 --- a/numpy/random/threefry.pyx +++ b/numpy/random/threefry.pyx @@ -11,6 +11,8 @@ from .common cimport * from .distributions cimport bitgen_t from .entropy import random_entropy, seed_by_array +__all__ = ['ThreeFry'] + np.import_array() DEF THREEFRY_BUFFER_SIZE=4 @@ -74,6 +76,14 @@ cdef class ThreeFry: a Python int in [0, 2**256) or a 4-element uint64 array. key and seed cannot both be 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 ----- ThreeFry is a 64-bit PRNG that uses a counter-based design based on |