Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] zsh/random module [UPDATED]



On Sun 20 Nov 2022, at 23:05, Clinton Bunch wrote:
> The only thing that feels inelegant about the getrandom command is the
> hex-string default, and I would welcome suggestions for a better default
> action.

Sorry for taking so long to get back to this

I think there's some concern that the API is a little weird (or at least
ambitious), which i'd agree with, though i don't have any specific suggestions
for improving it right now, other than what i've already said

But i do still like the idea, since i personally find myself needing random
data in the form of bytes/characters more often than numbers. It'd be nice to
have an easy, cross-platform, 'correct' way of achieving that. And i don't
consider it outside the scope of a shell that has a built-in FTP client lol

Matthew's idea of limiting it to an SRANDOM parameter and an arc4random
function (either initially or instead) seems likely to gain immediate
acceptance, though, since there's not much to bike-shed there. I would
certainly sign off on it, even if it's not everything i want

dana




Messages sorted by: Reverse Date, Date, Thread, Author