ILIAS  release_8 Revision v8.24
RandomSeed.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
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
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: GivenSeed.php:21