Added SDL_srand(), SDL_rand(), and SDL_rand_r() (thanks @JKaniarz!)

These are simple random functions that should not be used for serious random number generation.

Fixes https://github.com/libsdl-org/SDL/issues/4968
This commit is contained in:
Sam Lantinga
2024-06-16 07:20:11 -07:00
parent 9cb4bb92f6
commit d1d484ddbe
23 changed files with 203 additions and 89 deletions

View File

@@ -955,6 +955,8 @@ SDL3_0.0.0 {
SDL_powf;
SDL_qsort;
SDL_qsort_r;
SDL_rand;
SDL_rand_r;
SDL_realloc;
SDL_round;
SDL_roundf;
@@ -966,6 +968,7 @@ SDL3_0.0.0 {
SDL_snprintf;
SDL_sqrt;
SDL_sqrtf;
SDL_srand;
SDL_sscanf;
SDL_strcasecmp;
SDL_strcasestr;