From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id AE26A221FF for ; Sat, 20 Apr 2024 15:00:13 +0200 (CEST) Received: from duke.felloff.net ([216.126.196.34]) by 9front; Sat Apr 20 08:58:58 -0400 2024 Message-ID: Date: Sat, 20 Apr 2024 14:58:48 +0200 From: cinap_lenrek@felloff.net To: 9front@9front.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: software engine database Subject: Re: [9front] [PATCH] libc: replace lrand's algorithm Reply-To: 9front@9front.org Precedence: bulk as the first step, i'm going to just fix the kernels lrand() function to be compliant with the spec. you can generate 32-bit unsigned random number by calling nrand() or lrand() twice. which seems to be what the majority of the user in the kernel are doing. let consider this a improvement for later. -- cinap