Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] zsh/random module [UPDATED]
2022-11-25 08:53:11 +0000, Stephane Chazelas:
[...]
> and also looping until the value is
> different from the previous one (!? is that a guarantee also
> given by getrandom()?)).
[...]
From testing, it doesn't.
bash -c 'until (( (new = SRANDOM) == last )); do last=$new; done'
(where getrandom() is being used) eventually terminates.
Maybe the loop was added as a safeguard against programming
errors or corner cases.
--
Stephane
Messages sorted by:
Reverse Date,
Date,
Thread,
Author