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

Public Member Functions

 __construct ()
 
 createSeed ()
 
- Public Member Functions inherited from ILIAS\Refinery\Random\Seed\GivenSeed
 __construct (int $seed)
 
 seedRandomGenerator ()
 @inheritDoc More...
 
 seedRandomGenerator ()
 Seeds a random number generator. More...
 

Detailed Description

Definition at line 23 of file RandomSeed.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Refinery\Random\Seed\RandomSeed::__construct ( )

Definition at line 25 of file RandomSeed.php.

26 {
28 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), and ILIAS\Refinery\Random\Seed\RandomSeed\createSeed().

+ Here is the call graph for this function:

Member Function Documentation

◆ createSeed()

ILIAS\Refinery\Random\Seed\RandomSeed::createSeed ( )

Definition at line 30 of file RandomSeed.php.

30 : int
31 {
32 $array = explode(' ', microtime());
33 $seed = ((int) $array[1]) + (((float) $array[0]) * 100000);
34
35 return (int) $seed;
36 }

References ILIAS\Refinery\Random\Seed\GivenSeed\$seed, and ILIAS\Repository\int().

Referenced by ILIAS\Refinery\Random\Seed\RandomSeed\__construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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