rand is not ISO C compliant in Cygwin

René Berber rene.berber@gmail.com
Sat Nov 11 18:25:35 GMT 2023


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 sentence is not specifying--not requiring--any 
> behavior, so you should not depend on the described behaviors.
[snip]

The elided part on Bruno's message is:

"The implementation shall behave as if no library function calls the
rand function."

Which is the point Bruno is making with the sample code.
-- 
R.Berber



More information about the Cygwin mailing list