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

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.

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

26  {
28  }
__construct(Container $dic, ilPlugin $plugin)
+ 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.

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

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

30  : int
31  {
32  $array = explode(' ', microtime());
33  $seed = ((int) $array[1]) + (((float) $array[0]) * 100000);
34 
35  return (int) $seed;
36  }
+ 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: