Re: rand is not ISO C compliant in Cygwin

2023-11-11 Thread Allen, Norton T. via Cygwin
On 11/11/2023 1:25 PM, René Berber via Cygwin wrote: On 11/11/2023 10:50 AM, Allen, Norton T. via Cygwin wrote: [snip] The srand function is not required to avoid data races with other     calls to pseudo-random sequence generation functions. ..." That is not the same as "... required never to

Re: rand is not ISO C compliant in Cygwin

2023-11-11 Thread René Berber via Cygwin
On 11/11/2023 10:50 AM, Allen, Norton T. via Cygwin wrote: [snip] The srand function is not required to avoid data races with other     calls to pseudo-random sequence generation functions. ..." That is not the same as "... required never to avoid data races ...". "not required" means the sent

Re: rand is not ISO C compliant in Cygwin

2023-11-11 Thread Allen, Norton T. via Cygwin
On 11/10/2023 5:27 PM, Bruno Haible wrote: Norton Allen wrote: Cygwin/(newlib?) has chosen to avoid race conditions by making pseudo-random sequences in different threads independent. Although the standard does not require this, it does not prohibit it either. I disagree. I cited the relevant s