ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
RandomSeed.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: GivenSeed.php:21
__construct(Container $dic, ilPlugin $plugin)