Home
last modified time | relevance | path

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

/external/lz4/programs/
Dframetest.c135 unsigned int FUZ_rand(unsigned int* src) in FUZ_rand() function
146 #define FUZ_RAND15BITS (FUZ_rand(seed) & 0x7FFF)
147 #define FUZ_RANDLENGTH ( (FUZ_rand(seed) & 3) ? (FUZ_rand(seed) % 15) : (FUZ_rand(seed) % 510) + 1…
155 BBuffer[pos++] = (BYTE)(FUZ_rand(seed)); in FUZ_fillCompressibleNoiseBuffer()
179 while (pos < end) BBuffer[pos++] = (BYTE)(FUZ_rand(seed) >> 5); in FUZ_fillCompressibleNoiseBuffer()
298 unsigned nbBits = FUZ_rand(&randState) % maxBits; in basicTests()
299 size_t iSize = (FUZ_rand(&randState) & ((1<<nbBits)-1)) + 1; in basicTests()
408 for (testNb =0; testNb < startTest; testNb++) (void)FUZ_rand(&coreRand); // sync randomizer in fuzzerTests()
414 unsigned BSId = 4 + (FUZ_rand(&randState) & 3); in fuzzerTests()
415 unsigned BMId = FUZ_rand(&randState) & 1; in fuzzerTests()
[all …]
Dfuzzer.c126 static U32 FUZ_rand(U32* src) in FUZ_rand() function
137 #define FUZ_RAND15BITS ((FUZ_rand(seed) >> 3) & 32767)
138 #define FUZ_RANDLENGTH ( ((FUZ_rand(seed) >> 7) & 3) ? (FUZ_rand(seed) % 15) : (FUZ_rand(seed) % 5…
146 BBuffer[pos++] = (BYTE)(FUZ_rand(seed)); in FUZ_fillCompressibleNoiseBuffer()
170 while (pos < d) BBuffer[pos++] = (BYTE)(FUZ_rand(seed) >> 5); in FUZ_fillCompressibleNoiseBuffer()
313 (void)FUZ_rand(&coreRandState); in FUZ_test()
322 blockSize = FUZ_rand(&randState) % FUZ_MAX_BLOCK_SIZE; in FUZ_test()
323 blockStart = FUZ_rand(&randState) % (COMPRESSIBLE_NOISE_LENGTH - blockSize); in FUZ_test()
324 dictSize = FUZ_rand(&randState) % FUZ_MAX_DICT_SIZE; in FUZ_test()
347 (void)FUZ_rand(&coreRandState); in FUZ_test()
[all …]