Searched refs:rand_num (Results 1 – 3 of 3) sorted by relevance
/external/ltp/tools/ |
D | rand_lines.c | 360 int rand_num; in rnd_insert() local 370 rand_num = random_range(0, size - 1, 1, NULL); in rnd_insert() 372 if (!offsets[rand_num].used) { in rnd_insert() 373 offsets[rand_num].offset = offset; in rnd_insert() 374 offsets[rand_num].used++; in rnd_insert() 375 return rand_num; in rnd_insert()
|
/external/ltp/utils/benchmark/ebizzy-0.3/ |
D | ebizzy.c | 351 static inline unsigned int rand_num(unsigned int max, unsigned int *state) in rand_num() function 379 chunk = rand_num(chunks, &state); in search_mem() 386 copy_size = (rand_num(chunk_size / record_size, &state) in search_mem() 399 key = rand_num(copy_size / record_size, &state); in search_mem()
|
/external/e2fsprogs/misc/ |
D | e2fuzz.c | 166 static uint64_t rand_num(uint64_t min, uint64_t max) in rand_num() function 268 count = rand_num(0, corrupt_bytes / 100); in process_fs() 272 off = rand_num(offset, hsize); in process_fs()
|