Seed the random number generator

cpp
Elnu 3 years ago
parent 6600bdf109
commit 0e76abdcc7

@ -140,6 +140,8 @@ class Block {
int main()
{
srand(time(NULL));
sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris");
Block block;

Loading…
Cancel
Save