ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
RandomSeed.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
23class RandomSeed extends GivenSeed
24{
25 public function __construct()
26 {
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}
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc