From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id EDFF620CAE for ; Sat, 6 Apr 2024 18:48:30 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1712422110; b=C0aHUDxrCW/nSooZjx7dwkfizO67PGfmrEKgOx9YRf2Ap/Ufsfz1nU/EQkRm4hocZLBbT8wNfr 5r7/IYViULgfwZQLHMetbUK0whS31XbJt/2dSbDafNErfxCuye9p8Wp3xgJcJnCTKdYHORPaWq cJ1tSwQ+EJ2L6kc999A2bBKl3FXc+h4MrEM+j3eP6BhNU67Z3srDOF00zXsBwgGKlgC68YZzXo p+UwD9x+rgHc1vUO/KgbzYwJIu9ffo492Y5IGdAIgwrnW1RvYk4hExkvLKWYGlawUGL6BrQH1H N521huh2YWhR7FOvz8S9CU0oogvpQ7Qv3klaaQ34dAu6yQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1712422110; bh=othJSJ62gN9a/UUalZ8V2PfzNSGDjeKw0vD1uq1oB2k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=kXqJoiIn+xSQCknQth2wbBIFdCMjwA8dH94PZufMIK9EKsfeD3SrhvjkOXMoWcWTxb6h60clzZ HeV3Be8negPO46zHdH45Q5TVNfEGnu2rLotRQRp/Spg94qYKyrFJHKNyoozjG0F2z3WXoOUJz7 HeoqVx6GZMHFQBq+bcg+sfLMxpBbwJbocc24LTK6NxRVyOYIyRN0odsNnA/MHOikU58b6qKAOv J5CiqSrsMZcUdJax6NukPg15p52TNUHa4cXGun/rAVWOSk+LTPmheobGpNJ+5/c130wIrjYz03 R+6sXGW+RgYu0MDj84Y4cJGf//Conx5FVMUhtGfHP44PAw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=othJSJ62gN9a/UUalZ8V2PfzNSGDjeKw0vD1uq1oB2k=; b=SeAD0ow1dtos87JrxaV6nxTNSF S0owZ8qB0tapEBcTCtSPPtfxSLN0Kj49yjB68T/rnBna+jq283zoctcfq0nBZgf+oSI7pE3Q9cELw 68ee8z3hfXn6kwT6U59uaXza5KS2V1DSUY+cN9l9lNm3/YDIl4a3LKl/CmN3CwlwHtt3LneC09HRn 5lAHU/NZ9JmBU8UJWrEe48h4miTEN7VqaeSbOhOAm4MnxILdOM8qbCTJ33Ddn4GILgDSqfV50VVZi H8AvkoRH46Qvf4rZuk21W6sajit8UkwhpUaHZ9WHxEMLHIBnLLzXkfZc9VanMZN+f4ULoa5jFfvGy llj+r4Gw==; Received: by zero.zsh.org with local id 1rt9DR-000E9t-Kn; Sat, 06 Apr 2024 16:48:29 +0000 Authentication-Results: zsh.org; iprev=pass (iris.zentaur.org) smtp.remote-ip=198.58.127.206; dkim=pass header.d=zentaur.org header.s=dkim20200120 header.a=rsa-sha256; dmarc=pass header.from=zentaur.org; arc=none Received: from iris.zentaur.org ([198.58.127.206]:53786) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rt9D7-000DqU-0X; Sat, 06 Apr 2024 16:48:11 +0000 Received: from iris.zentaur.org (localhost [127.0.0.1]) by iris.zentaur.org (Postfix) with ESMTP id 4VBh9z3Hdrz3wZv for ; Sat, 6 Apr 2024 16:48:07 +0000 (UTC) Authentication-Results: iris.zentaur.org (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=zentaur.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zentaur.org; h= content-transfer-encoding:content-type:in-reply-to:from :content-language:references:to:subject:user-agent:mime-version :date:message-id; s=dkim20200120; t=1712422086; x=1712425687; bh=othJSJ62gN9a/UUalZ8V2PfzNSGDjeKw0vD1uq1oB2k=; b=OJfF7ReRI5oS n8AtBCglagJbv1ztXZNesriOuDlsKljun338YN3gH77ycZWaQei9xoiLYi7tWZ9c gdq1oADjMKm04PsKkAfXhdeDisaUJR6forOhcyFR0ktCVUpJ89WyAgiXYT56ZGn2 FfBfo0sdpphClT0sMvDvfIYwWPvrv5013pu3Ejkf/k+JK/10n1FZfGTiwDZouj8s fAp2lqtz64J82FtN99DpoYiSch5ee+T0LDCVvTBSnJcBLGB12x0B3HP9Hg+K0zyj viREUP6xYGYuSkPsbW8WHwd8s2fp92PSjAwQKh2FYILBaGdcD8wxNWpRNxM74geb VwhcTwDlmw== X-Virus-Scanned: amavis at iris.zentaur.org Received: from iris.zentaur.org ([127.0.0.1]) by iris.zentaur.org (iris.zentaur.org [127.0.0.1]) (amavis, port 10026) with ESMTP id neEwuqT_7FjI for ; Sat, 6 Apr 2024 16:48:06 +0000 (UTC) Received: from [IPV6:2605:a601:a57c:ee00::4000] (unknown [IPv6:2605:a601:a57c:ee00::4000]) by iris.zentaur.org (Postfix) with ESMTPSA id 4VBh9y6Xt0z3wZt for ; Sat, 6 Apr 2024 16:48:06 +0000 (UTC) Message-ID: <7ea51e76-b2aa-4282-ae93-760911dab49a@zentaur.org> Date: Sat, 6 Apr 2024 11:48:06 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 0/1] zsh/random module To: zsh-workers@zsh.org References: <57374b5f-77b9-4dee-aaba-5c4bdeb1b281@zentaur.org> Content-Language: en-US From: Clinton Bunch In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Seq: 52880 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 4/5/2024 21:41, Clinton Bunch wrote: > On 3/24/2024 09:11, Clinton Bunch wrote: >> >> >> I am still working on the test harness.=C2=A0 I'm thinking about using= a C=20 >> program for analysis of shell output, but no current test harness=20 >> does anything like that.=C2=A0 (long double would really be helpful fo= r=20 >> larger bounds, 1-20 works, 1-100 causes overflows) >> > I'm struggling with a test for this module.=C2=A0 I thought about doing= a=20 > statistical analysis (chi-square) of output, but I can't get a=20 > successful p-value nearly 10% of the time.=C2=A0 I tried doing the same= =20 > with return values from the base library functions and got similar=20 > bias, so it appears I'd just be testing the randomness of the kernel=20 > PRNG rather than compilation of code. > > Anyone else have any ideas? > > > Another question:=C2=A0 The math function names. Would something like srandom_int and srandom_float be better to show the=20 association with the SRANDOM parameter? Or maybe call the parameter ZRANDOM with SRANDOM as an alias for Bash=20 compatibility?