Re: arc4random does not reseed after using fork()

2024-01-29 Thread Johnothan King via Cygwin
Hello, I can confirm the bugfix works and that arc4random now functions correctly in Cygwin 3.5 after fork(). - Johnothan King -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe i

Re: arc4random does not reseed after using fork()

2024-01-29 Thread Corinna Vinschen via Cygwin
Hi Johnothan, On Jan 26 22:06, Johnothan King via Cygwin wrote: > Hello, > > While testing ksh93u+m's recently added SRANDOM variable[1], I have > discovered a bug in Cygwin's arc4random function. After using fork(), > arc4random does not reseed itself, which causes the results to become > predic

Re: arc4random does not reseed after using fork()

2024-01-27 Thread Johnothan King via Cygwin
> FYI: There was a thread in Nov 2023 about rand() which might be related. > > rand is not ISO C compliant in Cygwin > https://cygwin.com/pipermail/cygwin/2023-November/254735.html > > conclusion of that thread: > https://cygwin.com/pipermail/cygwin/2023-November/254764.html I don't think that h

Re: arc4random does not reseed after using fork()

2024-01-27 Thread Brian Inglis via Cygwin
On 2024-01-26 16:50, Glenn Strauss via Cygwin wrote: While testing ksh93u+m's recently added SRANDOM variable[1], I have discovered a bug in Cygwin's arc4random function. After using fork(), arc4random does not reseed itself, which causes the results to become predictable[2]. Below is a test case

Re: arc4random does not reseed after using fork()

2024-01-26 Thread Glenn Strauss via Cygwin
> While testing ksh93u+m's recently added SRANDOM variable[1], I have > discovered a bug in Cygwin's arc4random function. After using fork(), > arc4random does not reseed itself, which causes the results to become > predictable[2]. Below is a test case C program exhibiting the bug: > > ... > > [1