lua-users home
lua-l archive

Re: Upvalues vs C static variable

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> On Apr 13, 2018, at 12:08 PM, 云风 <cloudwu@gmail.com> 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" ?

AltStyle によって変換されたページ (->オリジナル) /