Lines Matching refs:FUZ_rand
95 static U32 FUZ_rand(U32* src) in FUZ_rand() function
2354 params.d = 1 + (FUZ_rand(&seed32) % 16); in basicUnitTests()
2355 params.k = params.d + (FUZ_rand(&seed32) % 256); in basicUnitTests()
2838 _3BytesSeqs[i][0] = (BYTE)(FUZ_rand(&rSeed) & 255); in basicUnitTests()
2839 _3BytesSeqs[i][1] = (BYTE)(FUZ_rand(&rSeed) & 255); in basicUnitTests()
2840 _3BytesSeqs[i][2] = (BYTE)(FUZ_rand(&rSeed) & 255); in basicUnitTests()
2846 U32 const id = FUZ_rand(&rSeed) & NB3BYTESSEQMASK; in basicUnitTests()
3285 return (lengthMask+1) + (FUZ_rand(seed) & lengthMask); in FUZ_rLogLength()
3290 U32 const logLength = FUZ_rand(seed) % maxLog; in FUZ_randomLength()
3353 for (testNb=1; testNb < startTest; testNb++) FUZ_rand(&coreSeed); in fuzzerTests()
3370 FUZ_rand(&coreSeed); in fuzzerTests()
3374 { U32 buffNb = FUZ_rand(&lseed) & 0x7F; in fuzzerTests()
3394 { size_t const sampleStart = FUZ_rand(&lseed) % (srcBufferSize - sampleSize); in fuzzerTests()
3400 ( FUZ_rand(&lseed) % in fuzzerTests()
3403 int const cLevel = ((FUZ_rand(&lseed) & 15) == 3) ? in fuzzerTests()
3404 - (int)((FUZ_rand(&lseed) & 7) + 1) : /* test negative cLevel */ in fuzzerTests()
3412 { const size_t missing = (FUZ_rand(&lseed) % (cSize-2)) + 1; in fuzzerTests()
3437 { size_t const margin = (FUZ_rand(&lseed) & 1) ? 0 : (FUZ_rand(&lseed) & 31) + 1; in fuzzerTests()
3448 …{ size_t const missing = (FUZ_rand(&lseed) % (cSize-2)) + 1; /* no problem, as cSize > 4 (fram… in fuzzerTests()
3461 …size_t const missing = (FUZ_rand(&lseed) % (sampleSize-2)) + 1; /* no problem, as cSize > 4 (fra… in fuzzerTests()
3477 { U32 const nbBits = FUZ_rand(&lseed) % maxNbBits; in fuzzerTests()
3479 size_t const skipLength = FUZ_rand(&lseed) & mask; in fuzzerTests()
3484 { U32 const nbBitsCodes = FUZ_rand(&lseed) % maxNbBits; in fuzzerTests()
3487 size_t const rNoiseLength = (FUZ_rand(&lseed) & mask) + 1; in fuzzerTests()
3489 size_t const noiseStart = FUZ_rand(&lseed) % (srcBufferSize - noiseLength); in fuzzerTests()
3509 { U32 const testLog = FUZ_rand(&lseed) % maxSrcLog; in fuzzerTests()
3510 U32 const dictLog = FUZ_rand(&lseed) % maxSrcLog; in fuzzerTests()
3511 int const cLevel = (FUZ_rand(&lseed) % in fuzzerTests()
3519 dict = srcBuffer + (FUZ_rand(&lseed) % (srcBufferSize - dictSize)); in fuzzerTests()
3524 if (FUZ_rand(&lseed) & 0xF) { in fuzzerTests()
3528 ZSTD_frameParameters const fPar = { FUZ_rand(&lseed)&1 /* contentSizeFlag */, in fuzzerTests()
3529 !(FUZ_rand(&lseed)&3) /* contentChecksumFlag*/, in fuzzerTests()
3537 { U32 const nbChunks = (FUZ_rand(&lseed) & 127) + 2; in fuzzerTests()
3543 size_t const segmentStart = FUZ_rand(&lseed) % (srcBufferSize - segmentSize); in fuzzerTests()