Add fuzzer to test lib

This commit is contained in:
Andreas Schiffler 2012-11-27 21:40:46 -08:00
parent cf4a5b5570
commit 732f28216b
4 changed files with 1011 additions and 4 deletions

View file

@ -54,11 +54,9 @@ extern "C" {
/* ------- Definitions ------- */
/*
* Macros that return random number in a specific format.
* Float values are in the range [0.0-1.0].
* Macros that return a random number in a specific format.
*/
#define SDL_TestRandomInt(c) ((int)SDL_TestRandom(c))
#define SDL_TestRandomFloat(c) ((double)SDL_TestRandom(c)/(unsigned long)0xffffffff)
#define SDLTest_RandomInt(c) ((int)SDLTest_Random(c))
/*
* Context structure for the random number generator state.