mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-04-21 16:01:56 +02:00
Merge pull request #1534 from lyrixx/fix-mt_srand
Restore a random seed when the Generator is destroyed
This commit is contained in:
commit
bd481c8549
@ -278,4 +278,9 @@ class Generator
|
||||
{
|
||||
return $this->format($method, $attributes);
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
$this->seed();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user