lua-users home
lua-l archive

Re: math.random returning out of range values

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


> > #define luaL_checkunsigned luaL_checkint
> 
> That looks nasty. Would that not cause problems?
Lazy, yes. Nasty, no. :-)
Fortunately, luaL_checkunsigned is used in lmathlib.c only in math_randomseed
when calling srand and for that any bit pattern works fine...

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