ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 

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.

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

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

Member Function Documentation

◆ seedRandomGenerator()

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

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: