Re: [PATCH] random: Don't reset crng_init_cnt on urandom_read()

From: Jason A. Donenfeld
Date: Mon Jan 03 2022 - 11:04:15 EST


On Mon, Jan 3, 2022 at 4:59 PM Jann Horn <jannh@xxxxxxxxxx> wrote:
> This code was inconsistent, and it probably made things worse - just get
> rid of it.

Rather than adding crng_init_cnt=0 if crng_init<1 to extract_crng_user
and get_random_bytes, getting rid of it like this seems probably okay
and makes the model simpler. I'll apply this. Thank you.

Jason