ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
RandomSeed.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Refinery\Random\Seed
;
22
23
class
RandomSeed
extends
GivenSeed
24
{
25
public
function
__construct
()
26
{
27
parent::__construct
($this->
createSeed
());
28
}
29
30
public
function
createSeed
():
int
31
{
32
$array = explode(
' '
, microtime());
33
$seed
= ((
int
) $array[1]) + (((float) $array[0]) * 100000);
34
35
return
(
int
)
$seed
;
36
}
37
}
ILIAS\Refinery\Random\Seed\RandomSeed\__construct
__construct()
Definition:
RandomSeed.php:25
ILIAS\Refinery\Random\Seed\GivenSeed\$seed
int $seed
Definition:
GivenSeed.php:25
ILIAS\Refinery\Random\Seed\RandomSeed\createSeed
createSeed()
Definition:
RandomSeed.php:30
ILIAS\Refinery\Random\Seed
Definition:
GivenSeed.php:21
ILIAS\GlobalScreen\Provider\__construct
__construct(Container $dic, ilPlugin $plugin)
Definition:
PluginProviderHelper.php:37
ILIAS\Refinery\Random\Seed\RandomSeed
Definition:
RandomSeed.php:23
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ILIAS\Refinery\Random\Seed\GivenSeed
Definition:
GivenSeed.php:23
components
ILIAS
Refinery
src
Random
Seed
RandomSeed.php
Generated on Sun Aug 31 2025 23:03:32 for ILIAS by
1.8.13 (using
Doxyfile
)