Lines Matching refs:FUZ_rand
135 unsigned int FUZ_rand(unsigned int* src) in FUZ_rand() function
146 #define FUZ_RAND15BITS (FUZ_rand(seed) & 0x7FFF)
147 #define FUZ_RANDLENGTH ( (FUZ_rand(seed) & 3) ? (FUZ_rand(seed) % 15) : (FUZ_rand(seed) % 510) + 1…
155 BBuffer[pos++] = (BYTE)(FUZ_rand(seed)); in FUZ_fillCompressibleNoiseBuffer()
179 while (pos < end) BBuffer[pos++] = (BYTE)(FUZ_rand(seed) >> 5); in FUZ_fillCompressibleNoiseBuffer()
298 unsigned nbBits = FUZ_rand(&randState) % maxBits; in basicTests()
299 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
408 for (testNb =0; testNb < startTest; testNb++) (void)FUZ_rand(&coreRand); // sync randomizer in fuzzerTests()
414 unsigned BSId = 4 + (FUZ_rand(&randState) & 3); in fuzzerTests()
415 unsigned BMId = FUZ_rand(&randState) & 1; in fuzzerTests()
416 unsigned CCflag = FUZ_rand(&randState) & 1; in fuzzerTests()
417 unsigned autoflush = (FUZ_rand(&randState) & 7) == 2; in fuzzerTests()
421 unsigned nbBits = (FUZ_rand(&randState) % (FUZ_highbit(srcDataLength-1) - 1)) + 1; in fuzzerTests()
422 size_t srcSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in fuzzerTests()
423 size_t srcStart = FUZ_rand(&randState) % (srcDataLength - srcSize); in fuzzerTests()
428 (void)FUZ_rand(&coreRand); // update rand seed in fuzzerTests()
433 prefs.compressionLevel = FUZ_rand(&randState) % 5; in fuzzerTests()
434 if ((FUZ_rand(&randState)&0xF) == 1) prefsPtr = NULL; in fuzzerTests()
439 if ((FUZ_rand(&randState)&0xF) == 2) in fuzzerTests()
456 unsigned nbBitsSeg = FUZ_rand(&randState) % maxBits; in fuzzerTests()
457 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBitsSeg)-1)) + 1; in fuzzerTests()
459 unsigned forceFlush = ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
461 cOptions.stableSrc = ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
487 unsigned nonContiguousDst = (FUZ_rand(&randState) & 3) == 1; in fuzzerTests()
488 nonContiguousDst += FUZ_rand(&randState) & nonContiguousDst; /* 0=>0; 1=>1,2 */ in fuzzerTests()
492 unsigned nbBitsI = (FUZ_rand(&randState) % (maxBits-1)) + 1; in fuzzerTests()
493 unsigned nbBitsO = (FUZ_rand(&randState) % (maxBits)) + 1; in fuzzerTests()
494 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBitsI)-1)) + 1; in fuzzerTests()
495 size_t oSize = (FUZ_rand(&randState) & ((1<<nbBitsO)-1)) + 2; in fuzzerTests()
498 dOptions.stableDst = FUZ_rand(&randState) & 1; in fuzzerTests()