getUuid() ); } /** * v4, not the framework's default v7: a v7 would sort by creation time and carry that * timestamp in the claim, which is the disclosure the column exists to avoid. */ public function testUuidsAreRandomRatherThanOrdered(): void { $uuids = []; for ($i = 0; $i < 50; ++$i) { $uuids[] = (new User("someone{$i}@ep-reisen.de"))->getUuid(); } self::assertCount(50, array_unique($uuids)); $sorted = $uuids; sort($sorted); self::assertNotSame($sorted, $uuids, 'v4 uuids must not come out in creation order'); } }