From 0e76abdcc7b1b8034948f0fdbcb47860648da4f9 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Sat, 5 Mar 2022 13:33:26 -0800 Subject: [PATCH] Seed the random number generator --- src/Main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Main.cpp b/src/Main.cpp index ec02d32..7be3dbe 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -140,6 +140,8 @@ class Block { int main() { + srand(time(NULL)); + sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris"); Block block;