rand is not ISO C compliant in Cygwin

Bruno Haible bruno@clisp.org
Mon Nov 13 14:25:12 GMT 2023


Corinna Vinschen wrote:
> The rand() function would still not use locking but AFAICS that's
> not actually required by POSIX or ISO C.

Correct. Those who want an MT-safe rand-like function need to use random(),
not rand().

Bruno





More information about the Cygwin mailing list