ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
RandomSeed.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
23 class 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)