From e849c62f553d38010850c39d726e7c400b8c9a64 Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Tue, 19 Jan 2021 19:41:50 +0100 Subject: [PATCH] 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(). --- Userland/Games/Conway/Game.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Games/Conway/Game.cpp b/Userland/Games/Conway/Game.cpp index e35603bcbb..61a2aa7a48 100644 --- a/Userland/Games/Conway/Game.cpp +++ b/Userland/Games/Conway/Game.cpp @@ -31,7 +31,6 @@ Game::Game() { - srand(time(nullptr)); reset(); }