lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: Upvalues vs C static variable
From
: Viacheslav Usov <via.usov@
...
>
Date
: Fri, 13 Apr 2018 17:43:23 +0200
On Fri, Apr 13, 2018 at 5:35 PM, Albert Chan
<
albertmcchan@yahoo.com
>
wrote:
> Prior to lua 5.4, lua math.random() use C rand().
> Does that mean the "old" lua math.random may obtain different random output with the same seed ?
Generally, yes. You can say "no" only if you control all the other users of rand() in the process, which in many cases you can, though.
Cheers,
V.
References
:
Upvalues vs C static variable
,
Albert Chan
Re: Upvalues vs C static variable
,
Dirk Laurie
Re: Upvalues vs C static variable
,
Albert Chan
Prev by Date:
Re: Upvalues vs C static variable
Next by Date:
Re: Upvalues vs C static variable
Previous by thread:
Re: Upvalues vs C static variable
Next by thread:
Re: Upvalues vs C static variable
Index(es):
Date
Thread