$randomnessSource
$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
The pseudo-random generator service property storage.
Class AbstractRandomnessInjectable - Abstraction container for dependency injection of data generator services.
$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
The pseudo-random generator service property storage.
setRandomGenerator(\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator $generator) : $this
Setter for the pseudo-random generator service.
\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator | $generator | The pseudo-random generator service. |
The container object.
getRandomGenerator() : \CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null
Getter for the pseudo-random generator service.
The currently injected pseudo-random generator service.
__construct(\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null $generator = null)
Container constructor.
\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null | $generator | The pseudo-random generator service. |
Initialization validation.
seedRandomGenerator(null|integer $seed = null) : $this
Pass a seed value to the pseudo-randomness generator service.
null|integer | $seed | Seed value in integer format or null for auto-seeding. |
Validation errors and service misuse.
The container object.