ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Refinery\Random\Seed\GivenSeed Class Reference
+ Inheritance diagram for ILIAS\Refinery\Random\Seed\GivenSeed:
+ Collaboration diagram for ILIAS\Refinery\Random\Seed\GivenSeed:

Public Member Functions

 __construct (int $seed)
 
 seedRandomGenerator ()
 @inheritDoc More...
 
 seedRandomGenerator ()
 Seeds a random number generator. More...
 

Private Attributes

int $seed
 

Detailed Description

Definition at line 23 of file GivenSeed.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\Random\Seed\GivenSeed::__construct ( int  $seed)

Definition at line 27 of file GivenSeed.php.

28 {
29 $this->seed = $seed;
30 }

References ILIAS\Refinery\Random\Seed\GivenSeed\$seed.

Member Function Documentation

◆ seedRandomGenerator()

ILIAS\Refinery\Random\Seed\GivenSeed::seedRandomGenerator ( )

@inheritDoc

Implements ILIAS\Refinery\Random\Seed\Seed.

Definition at line 35 of file GivenSeed.php.

35 : void
36 {
37 mt_srand($this->seed);
38 }

Field Documentation

◆ $seed

int ILIAS\Refinery\Random\Seed\GivenSeed::$seed
private

The documentation for this class was generated from the following file: