Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1534 from lyrixx/fix-mt_srand
Browse files Browse the repository at this point in the history
Restore a random seed when the Generator is destroyed
  • Loading branch information
fzaninotto authored Nov 20, 2018
2 parents 82daf83 + 73314ab commit bd481c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Faker/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -278,4 +278,9 @@ public function __call($method, $attributes)
{
return $this->format($method, $attributes);
}

public function __destruct()
{
$this->seed();
}
}

0 comments on commit bd481c8

Please sign in to comment.