[PATCH 4.4 163/190] random: use lockless method of accessing and updating f->reg_idx