Lines Matching refs:FUZ_rand
85 static unsigned int FUZ_rand(unsigned int* seedPtr) in FUZ_rand() function
255 return (lengthMask+1) + (FUZ_rand(seed) & lengthMask); in FUZ_rLogLength()
260 U32 const logLength = FUZ_rand(seed) % maxLog; in FUZ_randomLength()
311 FUZ_rand(&coreSeed); in fuzzerTests()
328 FUZ_rand(&coreSeed); in fuzzerTests()
333 if ((FUZ_rand(&lseed) & 0xFF) == 131) { ZBUFF_freeCCtx(zc); zc = ZBUFF_createCCtx(); } in fuzzerTests()
334 if ((FUZ_rand(&lseed) & 0xFF) == 132) { ZBUFF_freeDCtx(zd); zd = ZBUFF_createDCtx(); } in fuzzerTests()
337 { U32 buffNb = FUZ_rand(&lseed) & 0x7F; in fuzzerTests()
352 { U32 const testLog = FUZ_rand(&lseed) % maxSrcLog; in fuzzerTests()
353 U32 const cLevel = (FUZ_rand(&lseed) % (ZSTD_maxCLevel() - (testLog/3))) + 1; in fuzzerTests()
355 dictSize = (FUZ_rand(&lseed)==1) ? FUZ_randomLength(&lseed, maxSampleLog) : 0; in fuzzerTests()
357 { size_t const dictStart = FUZ_rand(&lseed) % (srcBufferSize - dictSize); in fuzzerTests()
361 params.fParams.checksumFlag = FUZ_rand(&lseed) & 1; in fuzzerTests()
362 params.fParams.noDictIDFlag = FUZ_rand(&lseed) & 1; in fuzzerTests()
369 nbChunks = (FUZ_rand(&lseed) & 127) + 2; in fuzzerTests()
375 size_t const srcStart = FUZ_rand(&lseed) % (srcBufferSize - readChunkSize); in fuzzerTests()
387 if ((FUZ_rand(&lseed) & 15) == 0) { in fuzzerTests()
430 { U32 const nbNoiseChunks = (FUZ_rand(&lseed) & 7) + 2; in fuzzerTests()
434 size_t const noiseStart = FUZ_rand(&lseed) % (srcBufferSize - noiseSize); in fuzzerTests()
435 size_t const cStart = FUZ_rand(&lseed) % (cSize - noiseSize); in fuzzerTests()