Searched refs:FUZ_rand (Results 1 – 6 of 6) sorted by relevance
115 unsigned int FUZ_rand(unsigned int* src) in FUZ_rand() function126 #define FUZ_RAND15BITS (FUZ_rand(seed) & 0x7FFF)127 #define FUZ_RANDLENGTH ( (FUZ_rand(seed) & 3) ? (FUZ_rand(seed) % 15) : (FUZ_rand(seed) % 510) + 1…135 BBuffer[pos++] = (BYTE)(FUZ_rand(seed)); in FUZ_fillCompressibleNoiseBuffer()153 while (pos < end) BBuffer[pos++] = (BYTE)(FUZ_rand(seed) >> 5); in FUZ_fillCompressibleNoiseBuffer()384 unsigned const nbBits = FUZ_rand(&randState) % maxBits; in basicTests()385 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()704 unsigned nbBits = FUZ_rand(&randState) % maxBits; in basicTests()705 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()723 unsigned const nbBits = FUZ_rand(&randState) % maxBits; in basicTests()[all …]
133 static U32 FUZ_rand(U32* src) in FUZ_rand() function144 #define FUZ_RAND15BITS ((FUZ_rand(seed) >> 3) & 32767)145 #define FUZ_RANDLENGTH ( ((FUZ_rand(seed) >> 7) & 3) ? (FUZ_rand(seed) % 15) : (FUZ_rand(seed) % 5…154 BBuffer[pos++] = (BYTE)(FUZ_rand(seed)); in FUZ_fillCompressibleNoiseBuffer()171 while (pos < d) BBuffer[pos++] = (BYTE)(FUZ_rand(seed) >> 5); in FUZ_fillCompressibleNoiseBuffer()368 (void) FUZ_rand(&coreRandState); /* sync coreRandState */ in FUZ_test()375 U32 randState = FUZ_rand(&coreRandState) ^ PRIME3; in FUZ_test()376 int const blockSize = (FUZ_rand(&randState) % (FUZ_MAX_BLOCK_SIZE-1)) + 1; in FUZ_test()377 …int const blockStart = (int)(FUZ_rand(&randState) % (U32)(COMPRESSIBLE_NOISE_LENGTH - blockSize - … in FUZ_test()378 int const dictSizeRand = FUZ_rand(&randState) % FUZ_MAX_DICT_SIZE; in FUZ_test()[all …]
85 static unsigned int FUZ_rand(unsigned int* seedPtr) in FUZ_rand() function255 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()[all …]
88 static U32 FUZ_rand(U32* seedPtr) in FUZ_rand() function454 size_t const inSize = (FUZ_rand(&coreSeed) & 15) + 1; in basicUnitTests()455 size_t const outSize = (FUZ_rand(&coreSeed) & 15) + 1; in basicUnitTests()466 size_t const inSize = FUZ_rand(&coreSeed) & 15; in basicUnitTests()467 …size_t const outSize = (FUZ_rand(&coreSeed) & 15) + (!inSize); /* avoid having both sizes at 0 =… in basicUnitTests()701 inBuff.size += MIN(cSize - inBuff.pos, 1 + (FUZ_rand(&coreSeed) & 15)); in basicUnitTests()746 inBuff.size += MIN(cSize - inBuff.pos, 1 + (FUZ_rand(&coreSeed) & 15)); in basicUnitTests()1722 return (lengthMask+1) + (FUZ_rand(seed) & lengthMask); in FUZ_rLogLength()1727 U32 const logLength = FUZ_rand(seed) % maxLog; in FUZ_randomLength()1735 return (U32)((FUZ_rand(seed) % mod) + minVal); in FUZ_randomClampedLength()[all …]
95 static U32 FUZ_rand(U32* src) in FUZ_rand() function2354 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()[all …]
410 static U32 FUZ_rand(U32* src) in FUZ_rand() function502 const U32 changeID = (U32)FUZ_rand(&g_rand) % (mtAll[p.vals[strt_ind]].varLen << 1); in paramVariation()517 p.vals[v] = rangeMap(v, (int)(FUZ_rand(&g_rand) % rangetable[v])); in randomParams()1522 pc->vals[v] = rangeMap(v, FUZ_rand(&g_rand) % rangetable[v]); in randomConstrainedParams()1953 paramVaryOnce(FUZ_rand(&g_rand) % (strt_ind + 1), in playAround()1954 ((FUZ_rand(&g_rand) & 1) << 1) - 1, in playAround()1960 if (FUZ_rand(&g_rand) & ((1 << *NB_TESTS_PLAYED(p))-1)) in playAround()1981 U32 const id = FUZ_rand(&g_rand) % (NB_LEVELS_TRACKED+1); in BMK_selectRandomStart()