ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
GivenSeed.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
22 
23 class GivenSeed implements Seed
24 {
25  private int $seed;
26 
27  public function __construct(int $seed)
28  {
29  $this->seed = $seed;
30  }
31 
35  public function seedRandomGenerator(): void
36  {
37  mt_srand($this->seed);
38  }
39 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: GivenSeed.php:21