zsh-workers
 help / color / mirror / code / Atom feed
* use of rand() in zsh
@ 2022-10-10 23:32 Clinton Bunch
  2022-10-11  1:14 ` Bart Schaefer
  0 siblings, 1 reply; 13+ messages in thread
From: Clinton Bunch @ 2022-10-10 23:32 UTC (permalink / raw)
  To: zsh-workers

Is there a reason that zsh goes out of the way (srand_deterministic) to 
use the least random "random" function on modern Unix?  I would think a 
zrandom function that used getrandom() or arc4random() or /dev/urandom 
would serve better. But before I write one, I wanted to know if there 
was a reason that isn't obvious to me.


(I have an idea for a new module builtin that solved the mktemp race in 
zsh scripts and it should use a better random source than rand())



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-10-11 14:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-10 23:32 use of rand() in zsh Clinton Bunch
2022-10-11  1:14 ` Bart Schaefer
2022-10-11  1:27   ` Clinton Bunch
2022-10-11  1:32     ` Clinton Bunch
2022-10-11  3:34       ` Bart Schaefer
2022-10-11  3:44         ` Clinton Bunch
2022-10-11  6:31           ` Roman Perepelitsa
2022-10-11 12:51             ` Clinton Bunch
2022-10-11 13:23               ` Peter Stephenson
2022-10-11 14:15                 ` Clinton Bunch
2022-10-11 14:48                   ` Peter Stephenson
2022-10-11 12:35   ` Clinton Bunch
2022-10-11 13:18     ` Peter Stephenson

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).