Searched refs:rand_idx (Results 1 – 1 of 1) sorted by relevance
381 static size_t rand_idx = 0; in get_random_bytes() local413 if ((rand_idx + t_len) > RANDOM_BUFFER_SIZE) { in get_random_bytes()414 int sz_end = RANDOM_BUFFER_SIZE - rand_idx; in get_random_bytes()417 memcpy(out, rand_buf + rand_idx, sz_end); in get_random_bytes()419 rand_idx = sz_beg; in get_random_bytes()421 memcpy(out, rand_buf + rand_idx, t_len); in get_random_bytes()422 rand_idx += t_len; in get_random_bytes()