• Home
  • Raw
  • Download

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()
380 unsigned const nbBits = FUZ_rand(&randState) % maxBits; in basicTests()
381 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
677 unsigned nbBits = FUZ_rand(&randState) % maxBits; in basicTests()
678 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
696 unsigned const nbBits = FUZ_rand(&randState) % maxBits; in basicTests()
697 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
789 … for (testNb =0; (testNb < startTest); testNb++) (void)FUZ_rand(&coreRand); /* sync randomizer */ in fuzzerTests()
794 … unsigned const srcBits = (FUZ_rand(&randState) % (FUZ_highbit((U32)(srcDataLength-1)) - 1)) + 1; in fuzzerTests()
795 size_t const srcSize = (FUZ_rand(&randState) & ((1<<srcBits)-1)) + 1; in fuzzerTests()
796 size_t const srcStartId = FUZ_rand(&randState) % (srcDataLength - srcSize); in fuzzerTests()
798 unsigned const neverFlush = (FUZ_rand(&randState) & 15) == 1; in fuzzerTests()
804 (void)FUZ_rand(&coreRand); /* update seed */ in fuzzerTests()
806 prefs.frameInfo.blockMode = (LZ4F_blockMode_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
807 prefs.frameInfo.blockSizeID = (LZ4F_blockSizeID_t)(4 + (FUZ_rand(&randState) & 3)); in fuzzerTests()
808 prefs.frameInfo.blockChecksumFlag = (LZ4F_blockChecksum_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
809 prefs.frameInfo.contentChecksumFlag = (LZ4F_contentChecksum_t)(FUZ_rand(&randState) & 1); in fuzzerTests()
810 prefs.frameInfo.contentSize = ((FUZ_rand(&randState) & 0xF) == 1) ? srcSize : 0; in fuzzerTests()
811 prefs.autoFlush = neverFlush ? 0 : (FUZ_rand(&randState) & 7) == 2; in fuzzerTests()
812 prefs.compressionLevel = -5 + (int)(FUZ_rand(&randState) % 11); in fuzzerTests()
813 if ((FUZ_rand(&randState) & 0xF) == 1) prefsPtr = NULL; in fuzzerTests()
817 if ((FUZ_rand(&randState) & 0xFFF) == 0) { in fuzzerTests()
820 FUZ_writeLE32(op, LZ4F_MAGIC_SKIPPABLE_START + (FUZ_rand(&randState) & 15)); in fuzzerTests()
823 } else if ((FUZ_rand(&randState) & 0xF) == 2) { /* single pass compression (simple) */ in fuzzerTests()
838 unsigned const nbBitsSeg = FUZ_rand(&randState) % maxBits; in fuzzerTests()
839 size_t const sampleMax = (FUZ_rand(&randState) & ((1<<nbBitsSeg)-1)) + 1; in fuzzerTests()
842 cOptions.stableSrc = ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
851 { unsigned const forceFlush = neverFlush ? 0 : ((FUZ_rand(&randState) & 3) == 1); in fuzzerTests()
873 …unsigned const nonContiguousDst = FUZ_rand(&randState) % 3; /* 0 : contiguous; 1 : non-contiguou… in fuzzerTests()
878 unsigned const nbBitsI = (FUZ_rand(&randState) % (maxBits-1)) + 1; in fuzzerTests()
879 unsigned const nbBitsO = (FUZ_rand(&randState) % (maxBits)) + 1; in fuzzerTests()
880 size_t const iSizeMax = (FUZ_rand(&randState) & ((1<<nbBitsI)-1)) + 1; in fuzzerTests()
882 size_t const oSizeMax = (FUZ_rand(&randState) & ((1<<nbBitsO)-1)) + 2; in fuzzerTests()
886 dOptions.stableDst = FUZ_rand(&randState) & 1; in fuzzerTests()