Lines Matching refs:FUZ_rand
115 unsigned int FUZ_rand(unsigned int* src) in FUZ_rand() function
126 #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()
724 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
816 unsigned const nbBitsI = (FUZ_rand(randState) % (maxBits-1)) + 1; in test_lz4f_decompression_wBuffers()
817 unsigned const nbBitsO = (FUZ_rand(randState) % (maxBits)) + 1; in test_lz4f_decompression_wBuffers()
818 size_t const iSizeCand = (FUZ_rand(randState) & ((1<<nbBitsI)-1)) + 1; in test_lz4f_decompression_wBuffers()
821 size_t const oSizeCand = (FUZ_rand(randState) & ((1<<nbBitsO)-1)) + 2; in test_lz4f_decompression_wBuffers()
824 BYTE const mark = (BYTE)(FUZ_rand(randState) & 255); in test_lz4f_decompression_wBuffers()
827 dOptions.stableDst = FUZ_rand(randState) & 1; in test_lz4f_decompression_wBuffers()
882 …o_scenario_e const o_scenario = (o_scenario_e)(FUZ_rand(randState) % 3); /* 0 : contiguous; 1 : … in test_lz4f_decompression()
935 … for (testNb =0; (testNb < startTest); testNb++) (void)FUZ_rand(&coreRand); /* sync randomizer */ in fuzzerTests()
940 … unsigned const srcBits = (FUZ_rand(&randState) % (FUZ_highbit((U32)(CNBufferLength-1)) - 1)) + 1; in fuzzerTests()
941 size_t const srcSize = (FUZ_rand(&randState) & ((1<<srcBits)-1)) + 1; in fuzzerTests()
942 size_t const srcStartId = FUZ_rand(&randState) % (CNBufferLength - srcSize); in fuzzerTests()
944 unsigned const neverFlush = (FUZ_rand(&randState) & 15) == 1; in fuzzerTests()
950 (void)FUZ_rand(&coreRand); /* update seed */ in fuzzerTests()
952 prefs.frameInfo.blockMode = (LZ4F_blockMode_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
953 prefs.frameInfo.blockSizeID = (LZ4F_blockSizeID_t)(4 + (FUZ_rand(&randState) & 3)); in fuzzerTests()
954 prefs.frameInfo.blockChecksumFlag = (LZ4F_blockChecksum_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
955 prefs.frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
956 prefs.frameInfo.contentSize = ((FUZ_rand(&randState) & 0xF) == 1) ? srcSize : 0; in fuzzerTests()
957 prefs.autoFlush = neverFlush ? 0 : (FUZ_rand(&randState) & 7) == 2; in fuzzerTests()
958 prefs.compressionLevel = -5 + (int)(FUZ_rand(&randState) % 11); in fuzzerTests()
959 if ((FUZ_rand(&randState) & 0xF) == 1) prefsPtr = NULL; in fuzzerTests()
963 if ((FUZ_rand(&randState) & 0xFFF) == 0) { in fuzzerTests()
966 FUZ_writeLE32(op, LZ4F_MAGIC_SKIPPABLE_START + (FUZ_rand(&randState) & 15)); in fuzzerTests()
970 } else if ((FUZ_rand(&randState) & 0xF) == 2) { /* single pass compression (simple) */ in fuzzerTests()
988 unsigned const nbBitsSeg = FUZ_rand(&randState) % maxBits; in fuzzerTests()
989 size_t const sampleMax = (FUZ_rand(&randState) & ((1<<nbBitsSeg)-1)) + 1; in fuzzerTests()
993 cOptions.stableSrc = ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
1003 { unsigned const forceFlush = neverFlush ? 0 : ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
1013 int const tooSmallDstEnd = ((FUZ_rand(&randState) & 31) == 3); in fuzzerTests()
1014 size_t const dstEndTooSmallSize = (FUZ_rand(&randState) % dstEndSafeSize) + 1; in fuzzerTests()
1016 BYTE const canaryByte = (BYTE)(FUZ_rand(&randState) & 255); in fuzzerTests()
1050 { U32 const nbBits = FUZ_rand(&randState) % maxNbBits; in fuzzerTests()
1052 size_t const skipLength = FUZ_rand(&randState) & mask; in fuzzerTests()
1057 { U32 const nbBitsCodes = FUZ_rand(&randState) % maxNbBits; in fuzzerTests()
1060 size_t const rNoiseLength = (FUZ_rand(&randState) & mask) + 1; in fuzzerTests()
1062 size_t const noiseStart = FUZ_rand(&randState) % (CNBufferLength - noiseLength); in fuzzerTests()