Searched refs:rand_offset (Results 1 – 1 of 1) sorted by relevance
1682 size_t rand_offset = 0; in GetCfh() local1686 while (sum + cfh_idx_to_prob[rand_offset] < rand_num % 100) { in GetCfh()1687 sum += cfh_idx_to_prob[rand_offset]; in GetCfh()1688 ++rand_offset; in GetCfh()1690 assert(rand_offset < cfh_idx_to_prob.size()); in GetCfh()1692 rand_offset = rand_num % num_hot; in GetCfh()1695 rand_offset]; in GetCfh()