examples: No need to explicitly seed the RNG at startup.

SDL does this for you; explicit seeding is only for reproducing a specific
sequence of numbers (or maybe reseeding at a later point).
This commit is contained in:
Ryan C. Gordon committed 2024-09-26 15:01:04 -04:00
1 parent 671a33c2f7
commit 86ea283904
3 files changed
-6

No files matched your search

-2
View File
@@ -26,8 +26,6 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
return SDL_APP_FAILURE;
}
SDL_srand(0); /* seed the random number generator */
return SDL_APP_CONTINUE; /* carry on with the program! */
}