zsh-workers
 help / color / mirror / code / Atom feed
From: Clinton Bunch <cdb_zsh@zentaur.org>
To: zsh-workers@zsh.org
Subject: Re: [PATCH 1/1] zsh/random module
Date: Mon, 25 Mar 2024 20:07:39 -0500	[thread overview]
Message-ID: <049dec4b-16ac-43d3-a9ff-5767a2eb36d1@zentaur.org> (raw)
In-Reply-To: <5e230a1b-1656-4332-9335-a38d956dac80@zentaur.org>

On 3/25/2024 19:42, Clinton Bunch wrote:
> On 3/25/2024 18:59, Oliver Kiddle wrote:
>> Clinton Bunch wrote:
>>> +startitem()
>>> +vindex(SRANDOM)
>>> +item(tt(SRANDOM)) (
>>> +A random positive 32-bit integer between 0 and 4,294,967,295.  This 
>>> parameter
>>> +is read-only.
>>> +)
>> It'd be useful to spell-out exactly what the "S" in the name stands for.
> I'm not honestly sure what it stands for, I used it for compatibility 
> with bash.  Possibly 'system'?

Does this sound better:

A random positive 32-bit integer between 0 and 4,294,967,295. This parameter
is read-only. The name was chosen for compatibility with Bash and to
distinguish it from tt(RANDOM) which has a documented repeatable behavior.

>>
>>> +static int
>>> +ztr_to_hex(char *out, size_t outlen, uint8_t *input, size_t inlen)
>> Nothing calls this function does it? I'm guessing this is leftover from
>> the builtin in earlier patches.
>>
>> Oliver
> I meant to delete that before posting.  I hadn't done so prior because 
> I haven't given up entirely on implementing those builtins at a later 
> date.
>
>
>



  reply	other threads:[~2024-03-26  1:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-24 14:11 Clinton Bunch
2024-03-25 23:59 ` Oliver Kiddle
2024-03-26  0:42   ` Clinton Bunch
2024-03-26  1:07     ` Clinton Bunch [this message]
2024-03-27 23:18     ` Oliver Kiddle
2024-03-27 23:30       ` 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=049dec4b-16ac-43d3-a9ff-5767a2eb36d1@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).