mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-04 12:03:44 +00:00
Add seeds to data fixtures, to avoid random failures in tests
This commit is contained in:
@@ -34,7 +34,7 @@ trait RandomPersonHelperTrait
|
||||
return $qb
|
||||
->select('p')
|
||||
->setMaxResults(1)
|
||||
->setFirstResult(\random_int(0, $this->nbOfPersons))
|
||||
->setFirstResult(\mt_rand(0, $this->nbOfPersons))
|
||||
->getQuery()
|
||||
->getSingleResult();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user