time to seed srand (LOL)
This commit is contained in:
parent
953377d4ec
commit
b49dbb2f6a
1 changed files with 2 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
#include "SDL/SDL.h"
|
||||
|
@ -19,6 +20,7 @@ int
|
|||
main()
|
||||
{
|
||||
struct s_game ga;
|
||||
srand(time(NULL));
|
||||
|
||||
start:
|
||||
init_game(&ga);
|
||||
|
|
Loading…
Reference in a new issue