Seed the random number generator
This commit is contained in:
parent
6600bdf109
commit
0e76abdcc7
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@ class Block {
|
|||
|
||||
int main()
|
||||
{
|
||||
srand(time(NULL));
|
||||
|
||||
sf::RenderWindow window(sf::VideoMode(WINDOW_WIDTH, WINDOW_HEIGHT), "elnutris");
|
||||
|
||||
Block block;
|
||||
|
|
Loading…
Add table
Reference in a new issue