1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:27:43 +00:00

Conway: Don't run misleading srand()

The randomness is taken from arc4random() which is independent from srand/rand/rand_r,
so there's no need to call srand(). At best, it confuses the reader to think that
there would eventually be a call to rand().
This commit is contained in:
Ben Wiederhake 2021-01-19 19:41:50 +01:00 committed by Andreas Kling
parent c8465b4c1a
commit e849c62f55

View file

@ -31,7 +31,6 @@
Game::Game()
{
srand(time(nullptr));
reset();
}