Home
last modified time | relevance | path

Searched refs:FUZ_rand (Results 1 – 2 of 2) sorted by relevance

/external/lz4/tests/
Dframetest.c115 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()
[all …]
Dfuzzer.c121 static U32 FUZ_rand(U32* src) in FUZ_rand() function
132 #define FUZ_RAND15BITS ((FUZ_rand(seed) >> 3) & 32767)
133 #define FUZ_RANDLENGTH ( ((FUZ_rand(seed) >> 7) & 3) ? (FUZ_rand(seed) % 15) : (FUZ_rand(seed) % 5…
142 BBuffer[pos++] = (BYTE)(FUZ_rand(seed)); in FUZ_fillCompressibleNoiseBuffer()
159 while (pos < d) BBuffer[pos++] = (BYTE)(FUZ_rand(seed) >> 5); in FUZ_fillCompressibleNoiseBuffer()
355 (void) FUZ_rand(&coreRandState); /* sync coreRandState */ in FUZ_test()
362 U32 randState = FUZ_rand(&coreRandState) ^ PRIME3; in FUZ_test()
363 int const blockSize = (FUZ_rand(&randState) % (FUZ_MAX_BLOCK_SIZE-1)) + 1; in FUZ_test()
364 … int const blockStart = (FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize - 1)) + 1; in FUZ_test()
365 int const dictSizeRand = FUZ_rand(&randState) % FUZ_MAX_DICT_SIZE; in FUZ_test()
[all …]