[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Upvalues vs C static variable
- From: Albert Chan <albertmcchan@...>
- Date: Fri, 13 Apr 2018 12:24:01 -0400
> On Apr 13, 2018, at 12:08 PM, 云风 <firstname.lastname@example.org> wrote:
> CRT is thread-safe, but using a C static variable isn’t.
Do you mean C rand() does not use static variable ?
> When we run multi-states in multi-thread, calling math.rand() at the same time, the random sequence may rewind .
What is "may rewind" ?