Go to the documentation of this file.
28 #include "SDL_config.h"
32 #if defined(_MSC_VER) && _MSC_VER <= 1500
33 #define UINT8_MAX _UI8_MAX
34 #define UINT16_MAX _UI16_MAX
35 #define UINT32_MAX _UI32_MAX
36 #define INT64_MIN _I64_MIN
37 #define INT64_MAX _I64_MAX
38 #define UINT64_MAX _UI64_MAX
65 Uint32 a = (execKey >> 32) & 0x00000000FFFFFFFF;
66 Uint32 b = execKey & 0x00000000FFFFFFFF;
174 }
else if(pMin == pMax) {
181 return (
Sint32)((number % ((max + 1) - min)) + min);
216 if (boundary1 > boundary2) {
236 }
while (
index < delta);
240 tempBuf[
index] = b1 + 1;
242 tempBuf[
index] = b2 - 1;
250 tempBuf[
index] = b1 - 1;
255 tempBuf[
index] = b2 + 1;
274 const Uint64 maxValue = UCHAR_MAX;
284 const Uint64 maxValue = USHRT_MAX;
294 #if ((ULONG_MAX) == (UINT_MAX))
295 const Uint64 maxValue = ULONG_MAX;
297 const Uint64 maxValue = UINT_MAX;
310 boundary1, boundary2,
348 if (boundary1 > boundary2) {
368 }
while (
index < delta);
372 tempBuf[
index] = b1 + 1;
374 tempBuf[
index] = b2 - 1;
382 tempBuf[
index] = b1 - 1;
387 tempBuf[
index] = b2 + 1;
406 const Sint64 maxValue = SCHAR_MAX;
407 const Sint64 minValue = SCHAR_MIN;
417 const Sint64 maxValue = SHRT_MAX;
418 const Sint64 minValue = SHRT_MIN;
428 #if ((ULONG_MAX) == (UINT_MAX))
429 const Sint64 maxValue = LONG_MAX;
430 const Sint64 minValue = LONG_MIN;
433 const Sint64 minValue = INT_MIN;
444 const Sint64 maxValue = INT64_MAX;
445 const Sint64 minValue = INT64_MIN;
447 boundary1, boundary2,
477 }
while (
s > DBL_EPSILON);
Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain)
Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
static Sint64 SDLTest_GenerateSignedBoundaryValues(const Sint64 minValue, const Sint64 maxValue, Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
GLboolean GLboolean GLboolean b
double SDLTest_RandomUnitDouble()
char * SDLTest_RandomAsciiStringOfSize(int size)
Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain)
Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain)
GLdouble GLdouble GLdouble r
#define SDL_InvalidParamError(param)
float SDLTest_RandomFloat()
double SDLTest_RandomDouble()
Sint32 SDLTest_RandomSint32()
static SDLTest_RandomContext rndContext
GLboolean GLboolean GLboolean GLboolean a
static Uint64 SDLTest_GenerateUnsignedBoundaryValues(const Uint64 maxValue, Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
Sint8 SDLTest_RandomSint8()
Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain)
char * SDLTest_RandomAsciiString()
Uint16 SDLTest_RandomUint16()
static int fuzzerInvocationCounter
#define SDLTest_RandomInt(c)
Uint32 SDLTest_RandomUint32()
int SDLTest_GetFuzzerInvocationCount()
Sint16 SDLTest_RandomSint16()
void SDLTest_FuzzerInit(Uint64 execKey)
void SDLTest_RandomInit(SDLTest_RandomContext *rndContext, unsigned int xi, unsigned int ci)
Initialize random number generator with two integers.
Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
GLsizei const GLfloat * value
Uint8 SDLTest_RandomUint8()
Uint64 SDLTest_RandomUint64()
Sint64 SDLTest_RandomSint64()
#define SDL_Unsupported()
GLsizei const GLchar *const * string
float SDLTest_RandomUnitFloat()
Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain)
Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain)
Sint32 SDLTest_RandomIntegerInRange(Sint32 pMin, Sint32 pMax)
char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength)