From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by sourceware.org (Postfix) with ESMTPS id 97C803898C6A for ; Thu, 31 Mar 2022 15:32:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 97C803898C6A Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CDA7861AF5 for ; Thu, 31 Mar 2022 15:32:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F00BEC3410F for ; Thu, 31 Mar 2022 15:32:08 +0000 (UTC) Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id d021e3cc (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Thu, 31 Mar 2022 15:32:06 +0000 (UTC) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-2e6650cde1bso1930307b3.12 for ; Thu, 31 Mar 2022 08:32:05 -0700 (PDT) X-Gm-Message-State: AOAM532MAnQht0n47YVWF0D0RWiUTCMnUfvnxUThgVSdsBEJ4k4ceCtU 7Mmi8+9Dlvzmr65uI5/x2aAyeSmrDhDvcIkgN7A= X-Google-Smtp-Source: ABdhPJxSD9Wd953t7czRZdxASEojeOOnqxx3dhApVMAVMMR6M7sNjPsYtqyDHQIorMywmRHg7NF9C43Oh4AbKu3LBFc= X-Received: by 2002:a81:4f55:0:b0:2e5:be44:f42c with SMTP id d82-20020a814f55000000b002e5be44f42cmr5246066ywb.485.1648740725374; Thu, 31 Mar 2022 08:32:05 -0700 (PDT) MIME-Version: 1.0 References: <20220328220936.2724834-1-goldstein.w.n@gmail.com> <7b48ece6-392a-0850-c136-01ab751273ef@linaro.org> <72332228-093c-5186-789f-8616cfb93793@linaro.org> <0198ce75-8a8e-4355-eed1-f69dfb6f40f0@linaro.org> In-Reply-To: <0198ce75-8a8e-4355-eed1-f69dfb6f40f0@linaro.org> From: "Jason A. Donenfeld" Date: Thu, 31 Mar 2022 11:31:54 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 1/2] random-bits: Factor out entropy generating function To: Adhemerval Zanella Cc: =?UTF-8?Q?Cristian_Rodr=C3=ADguez?= , Noah Goldstein , GNU C Library , Florian Weimer Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2022 15:32:12 -0000 Just so we're on the same page here, is this a discussion about optimizing https://code.woboq.org/userspace/glibc/include/random-bits.h.html ? You just need a super fast random uint32_t for some future pthread changes? If so, I can send a patch to return moderately secure integers here really fast. Jason