ILIAS  release_8 Revision v8.24
GivenSeed.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
22
23class 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