diff --git a/wmtetris/wmtetris/wmtetris.c b/wmtetris/wmtetris/wmtetris.c index 6517575..cd6536f 100644 --- a/wmtetris/wmtetris/wmtetris.c +++ b/wmtetris/wmtetris/wmtetris.c @@ -2,6 +2,7 @@ #include #include #include +#include #include #include @@ -71,7 +72,7 @@ int main(int argc, char *argv[]) { unsigned long delay = INITIAL_DELAY, start_time; XEvent event; - srand(time()); + srand(time(NULL)); for (y = 0; y < BOARD_HEIGHT; y++) for (x = 0; x < BOARD_WIDTH; x++)