Re: math.random returning out of range values
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: math.random returning out of range values
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 7 Nov 2012 07:57:47 -0200
> > #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...