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


* Raphael M. Zinsly:

> 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.

Then I don't see any immediate problems with this change.

Thanks,
Florian


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