zsh-workers
 help / color / mirror / code / Atom feed
From: Clinton Bunch <cdb_zsh@zentaur.org>
To: zsh-workers@zsh.org
Subject: Re: [PATCH 0/1] zsh/random module
Date: Fri, 5 Apr 2024 21:41:34 -0500	[thread overview]
Message-ID: <ed3387ec-1ead-4681-ae3f-facef4c3d19d@zentaur.org> (raw)
In-Reply-To: <57374b5f-77b9-4dee-aaba-5c4bdeb1b281@zentaur.org>

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?




  parent reply	other threads:[~2024-04-06  2:42 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 [this message]
2024-04-06 16:48   ` Clinton Bunch

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=ed3387ec-1ead-4681-ae3f-facef4c3d19d@zentaur.org \
    --to=cdb_zsh@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).