\CryptoManana\Core\Traits\ContainersRandomnessInjectableTrait

Trait RandomnessInjectableTrait - Reusable implementation of `RandomnessInjectableInterface`.

Summary

Methods
Properties
Constants
setRandomGenerator()
getRandomGenerator()
$$randomnessSource
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$$randomnessSource

$$randomnessSource : \CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null

The randomness generator.

Type

\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator|null

Methods

setRandomGenerator()

setRandomGenerator(\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator  $generator) : $this

Setter for the pseudo-random generator service.

Parameters

\CryptoManana\Core\Abstractions\Randomness\AbstractGenerator $generator

The pseudo-random generator service.

Returns

$this —

The container object.