lua-users home
lua-l archive

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

On 3/16/2010 12:49 PM, Roberto Ierusalimschy wrote:

I think all these seeds are larger than INTMAX, so they are being
truncated to 0x80000000 (or something similar).

This is probably a bug in Lua, since srand should accept unsigned

-- Roberto

You may well be right, but I should note that I first noticed the problem when seeding with os.time(). I don't know whether that supports or refutes your suggestion.