From a1e5ef7ec83d383dbd790f76a2724e672b083f97 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 12 May 2023 13:49:20 +0200 Subject: [PATCH] better random --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 2e96f3a..8c8ac4e 100644 --- a/main.c +++ b/main.c @@ -1,3 +1,4 @@ +#include #include "includes/animations.h" @@ -38,6 +39,8 @@ static void init(void) { fprintf(stderr, "Erreur VSync : %s\n", SDL_GetError()); } + srand((Uint32)time(NULL)); + printf("Bienvenue dans la démo API8 !\n"); }