mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-21 14:55:39 +00:00
Updated based on feedback from @JKaniarz
This commit is contained in:
@@ -52,6 +52,15 @@ float SDL_randf(void)
|
||||
return SDL_randf_r(&SDL_rand_state);
|
||||
}
|
||||
|
||||
Uint32 SDL_rand_bits(void)
|
||||
{
|
||||
if (!SDL_rand_initialized) {
|
||||
SDL_srand(0);
|
||||
}
|
||||
|
||||
return SDL_rand_bits_r(&SDL_rand_state);
|
||||
}
|
||||
|
||||
Uint32 SDL_rand_bits_r(Uint64 *state)
|
||||
{
|
||||
if (!state) {
|
||||
|
||||
Reference in New Issue
Block a user