[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: math.randomseed() is completely broken on Lua 5.1.5 on Mac os x
- From: Dirk Laurie <dirk.laurie@...>
- Date: Tue, 10 Sep 2013 14:45:46 +0200
2013/9/10 Marek Majkowski <marek@popcount.org>:
> On Tue, Sep 10, 2013 at 1:22 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>> 2013/9/10 Marek Majkowski <marek@popcount.org>:
>>
>> There's a nice discussion on:
>>
>> <http://lua-users.org/lists/lua-l/2007-03/msg00564.html>
>
> Thanks for the link. Shouldn't it be mentioned in the bugs page?
>
> http://www.lua.org/bugs.html#5.1.5
It's not a Lua bug. Lua 5.1.5 on e.g. Linux does not have the bug.
Lua 5.2.x discards the first value when you call randomseed, but
one must think of that as a workaround to compensate for imperfect
C libraries.