Searched refs:rand_index (Results 1 – 1 of 1) sorted by relevance
1346 int rand_index = (mpx_random() % NR_MALLOCS); in do_one_malloc() local1347 void *ptr = mallocs[rand_index].ptr; in do_one_malloc()1352 dprintf3("freeing one malloc at index: %d\n", rand_index); in do_one_malloc()1353 free_one_malloc(rand_index); in do_one_malloc()1357 for (i = rand_index; i < NR_MALLOCS; i++) in do_one_malloc()1378 mallocs[rand_index].nr_filled_btes = cover_buf_with_bt_entries(ptr, sz); in do_one_malloc()1379 mallocs[rand_index].ptr = ptr; in do_one_malloc()1380 mallocs[rand_index].size = sz; in do_one_malloc()