diff options
Diffstat (limited to 'doc/source/reference/random')
-rw-r--r-- | doc/source/reference/random/bit_generators/index.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/reference/random/bit_generators/index.rst b/doc/source/reference/random/bit_generators/index.rst index f67458567..14c19a6bd 100644 --- a/doc/source/reference/random/bit_generators/index.rst +++ b/doc/source/reference/random/bit_generators/index.rst @@ -130,15 +130,15 @@ of 12 instances: .. end_block If you already have an initial random generator instance, you can shorten -the above by using the `~Generator.spawn` method: +the above by using the `~BitGenerator.spawn` method: .. code-block:: python from numpy.random import PCG64, SeedSequence # High quality initial entropy entropy = 0x87351080e25cb0fad77a44a3be03b491 - base_rng = PCG(entropy) - generators = base_rng.spawn(12) + base_bitgen = PCG64(entropy) + generators = base_bitgen.spawn(12) An alternative way is to use the fact that a `~SeedSequence` can be initialized by a tuple of elements. Here we use a base entropy value and an integer |