On Wed, Sep 19, 2012 at 00:48, Alexey Suslikov wrote:

>> > No, according to posix it should be thread safe.  I don't know why,
>> > since rand() is one of the exempted functions, but random() is not.
>> > Standards gods are capricious gods.
>>
>> I think you should stress *should* here. Looking at the
>> implementation, I cannot believe it's actually thread-safe.
>>
>>
> How about rand, srand, srand48 etc?

Well, like I said :), rand is exempt.  There's rand_r for that.

Reply via email to