| | |
| | | /* |
| | | Simple DirectMedia Layer |
| | | Copyright (C) 1997-2018 Sam Lantinga <slouken@libsdl.org> |
| | | Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org> |
| | | |
| | | This software is provided 'as-is', without any express or implied |
| | | warranty. In no event will the authors be held liable for any damages |
| | |
| | | /* max value for Uint64 */ |
| | | const Uint64 maxValue = UINT64_MAX; |
| | | return SDLTest_GenerateUnsignedBoundaryValues(maxValue, |
| | | (Uint64) boundary1, (Uint64) boundary2, |
| | | boundary1, boundary2, |
| | | validDomain); |
| | | } |
| | | |
| | |
| | | float |
| | | SDLTest_RandomFloat() |
| | | { |
| | | return (float) (SDLTest_RandomUnitDouble() * (double)2.0 * (double)FLT_MAX - (double)(FLT_MAX)); |
| | | return (float) (SDLTest_RandomUnitDouble() * 2.0 * (double)FLT_MAX - (double)(FLT_MAX)); |
| | | } |
| | | |
| | | double |