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

Re: broken random variable



On 10/19/19, . . <apatiskogen@xxxxxxxxxx> wrote:
> Hello, zsh-workers
>
> PS: I would recommend using "arc4random" on OpenBSD if that is at all
> possible.

OpenBSD actually incorrectly does this by default for rand() and we
had to go to some lengths to disable that misfeature. If you use old
versions of zsh[1] on new versions of OpenBSD, it will incorrectly
behave as you expect.


[1] http://www.zsh.org/mla/workers/2016/msg01503.html

-- 
Mikael Magnusson



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