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