Add seeds to data fixtures, to avoid random failures in tests

This commit is contained in:
2026-03-09 13:00:30 +00:00
parent e2dec28577
commit a921009eff
16 changed files with 78 additions and 41 deletions

View File

@@ -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();
}