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


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to