src/test/SDL_test_fuzzer.c
changeset 6757 9935f71c8c81
parent 6756 398073b195bb
child 6760 04dcce3081e6
     1.1 --- a/src/test/SDL_test_fuzzer.c	Fri Dec 14 23:05:34 2012 -0800
     1.2 +++ b/src/test/SDL_test_fuzzer.c	Sat Dec 15 21:50:17 2012 -0800
     1.3 @@ -38,7 +38,7 @@
     1.4  /** 
     1.5   *Counter for fuzzer invocations
     1.6   */
     1.7 -static int fuzzerInvocationCounter;
     1.8 +static int fuzzerInvocationCounter = 0;
     1.9  
    1.10  /**
    1.11   * Context for shared random number generator
    1.12 @@ -52,9 +52,11 @@
    1.13  void
    1.14  SDLTest_FuzzerInit(Uint64 execKey)
    1.15  {
    1.16 -	Uint32 a = (execKey >> 32)  & 0x00000000FFFFFFFF;
    1.17 +	Uint32 a = (execKey >> 32) & 0x00000000FFFFFFFF;
    1.18  	Uint32 b = execKey & 0x00000000FFFFFFFF;
    1.19 +	SDL_memset((void *)&rndContext, 0, sizeof(SDLTest_RandomContext));
    1.20  	SDLTest_RandomInit(&rndContext, a, b);
    1.21 +	fuzzerInvocationCounter = 0;
    1.22  }
    1.23  
    1.24  int