mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03: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
Notes:
sideshowbarker
2024-07-18 23:02:37 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/e849c62f553 Pull-request: https://github.com/SerenityOS/serenity/pull/5010
@ -31,7 +31,6 @@
|
||||
|
||||
Game::Game()
|
||||
{
|
||||
srand(time(nullptr));
|
||||
reset();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user