From: Clinton Bunch <cdbunch@zentaur.org>
To: zsh-workers@zsh.org
Subject: Re: [PATCH 0/1] zsh/random module
Date: Sat, 6 Apr 2024 11:48:06 -0500 [thread overview]
Message-ID: <7ea51e76-b2aa-4282-ae93-760911dab49a@zentaur.org> (raw)
In-Reply-To: <ed3387ec-1ead-4681-ae3f-facef4c3d19d@zentaur.org>
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. I'm thinking about using a C
>> program for analysis of shell output, but no current test harness
>> does anything like that. (long double would really be helpful for
>> larger bounds, 1-20 works, 1-100 causes overflows)
>>
> I'm struggling with a test for this module. I thought about doing a
> statistical analysis (chi-square) of output, but I can't get a
> successful p-value nearly 10% of the time. I tried doing the same
> with return values from the base library functions and got similar
> bias, so it appears I'd just be testing the randomness of the kernel
> PRNG rather than compilation of code.
>
> Anyone else have any ideas?
>
>
>
Another question: The math function names.
Would something like srandom_int and srandom_float be better to show the
association with the SRANDOM parameter?
Or maybe call the parameter ZRANDOM with SRANDOM as an alias for Bash
compatibility?
prev parent reply other threads:[~2024-04-06 16:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-24 14:11 Clinton Bunch
2024-03-25 2:34 ` Bart Schaefer
2024-03-26 12:47 ` Clinton Bunch
2024-03-26 13:01 ` Clinton Bunch
2024-03-26 18:25 ` Bart Schaefer
2024-04-06 2:41 ` Clinton Bunch
2024-04-06 16:48 ` Clinton Bunch [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7ea51e76-b2aa-4282-ae93-760911dab49a@zentaur.org \
--to=cdbunch@zentaur.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).