From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0B97DC54EE9 for ; Wed, 7 Sep 2022 13:33:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229801AbiIGNdO (ORCPT ); Wed, 7 Sep 2022 09:33:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbiIGNdJ (ORCPT ); Wed, 7 Sep 2022 09:33:09 -0400 Received: from isilmar-4.linta.de (isilmar-4.linta.de [136.243.71.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1373B7CA9E; Wed, 7 Sep 2022 06:33:08 -0700 (PDT) X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES Received: from shine.dominikbrodowski.net (shine.brodo.linta [10.2.0.112]) by isilmar-4.linta.de (Postfix) with ESMTPSA id 5D08C2013FE; Wed, 7 Sep 2022 13:33:06 +0000 (UTC) Received: by shine.dominikbrodowski.net (Postfix, from userid 1000) id 98AF0A00BF; Wed, 7 Sep 2022 15:04:53 +0200 (CEST) Date: Wed, 7 Sep 2022 15:04:53 +0200 From: Dominik Brodowski To: "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, Herbert Xu , linux-crypto@vger.kernel.org Subject: Re: [PATCH] random: use hwgenerator randomness more frequently at early boot Message-ID: References: <20220904101753.3050-1-linux@dominikbrodowski.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jason, Am Wed, Sep 07, 2022 at 03:02:34PM +0200 schrieb Jason A. Donenfeld: > Hi Dominik, > > On Sun, Sep 04, 2022 at 12:17:53PM +0200, Dominik Brodowski wrote: > > Mix in randomness from hw-rng sources more frequently during early > > boot, approximately once for every rng reseed. > > Nice idea. > > > Jason, if you prefer that this patch can be applied first (as it > > makes sense also independently of the other patch), this ordering > > should be trivial to change. > > I'll apply this patch first, yea, since it's independent. > > > -static bool crng_has_old_seed(void) > > +static unsigned int crng_interval(void) > > crng_reseed_interval() instead? Sounds good. Thanks! Dominik