mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +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:
parent
c8465b4c1a
commit
e849c62f55
1 changed files with 0 additions and 1 deletions
|
@ -31,7 +31,6 @@
|
||||||
|
|
||||||
Game::Game()
|
Game::Game()
|
||||||
{
|
{
|
||||||
srand(time(nullptr));
|
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue