This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] powerpc: optimizing random() and POSIX question


On 11/02/2020 11:42, Florian Weimer wrote:
I think POSIX requires random to the thread-safe in the presence of
concurrent initstate calls.  Would your change preserve this property?


Yes, concurrent calls to initstate, setstate or srandom will still be mutual exclusive.

Thanks,
--
Raphael Moreira Zinsly
IBM
Linux on Power Toolchain


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]