better random
This commit is contained in:
parent
b1f69d0539
commit
a1e5ef7ec8
1 changed files with 3 additions and 0 deletions
3
main.c
3
main.c
|
@ -1,3 +1,4 @@
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
#include "includes/animations.h"
|
#include "includes/animations.h"
|
||||||
|
|
||||||
|
@ -38,6 +39,8 @@ static void init(void) {
|
||||||
fprintf(stderr, "Erreur VSync : %s\n", SDL_GetError());
|
fprintf(stderr, "Erreur VSync : %s\n", SDL_GetError());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
srand((Uint32)time(NULL));
|
||||||
|
|
||||||
printf("Bienvenue dans la démo API8 !\n");
|
printf("Bienvenue dans la démo API8 !\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue