[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YnivSwI+IczXnJ4q@owl.dominikbrodowski.net>
Date: Mon, 9 May 2022 08:06:03 +0200
From: Dominik Brodowski <linux@...inikbrodowski.net>
To: "Jason A. Donenfeld" <Jason@...c4.com>
Cc: linux-kernel@...r.kernel.org, Joe Perches <joe@...ches.com>
Subject: Re: [PATCH v2] random: use symbolic constants for crng_init states
Am Sun, May 08, 2022 at 07:36:10PM +0200 schrieb Jason A. Donenfeld:
> crng_init represents a state machine, with three states, and various
> rules for transitions. For the longest time, we've been managing these
> with "0", "1", and "2", and expecting people to figure it out. To make
> the code more obvious, replace these with proper enum values
> representing the transition, and then redocument what each of these
> states mean.
>
> Cc: Dominik Brodowski <linux@...inikbrodowski.net>
> Cc: Joe Perches <joe@...ches.com>
> Signed-off-by: Jason A. Donenfeld <Jason@...c4.com>
Reviewed-by: Dominik Brodowski <linux@...inikbrodowski.net>
Thanks,
Dominik
Powered by blists - more mailing lists