1
0
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:
Francois Zaninotto 2018-11-20 17:35:25 +01:00 committed by GitHub
commit bd481c8549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -278,4 +278,9 @@ class Generator
{
return $this->format($method, $attributes);
}
public function __destruct()
{
$this->seed();
}
}