Re: [ANN] lua-arc4random v1.0
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] lua-arc4random v1.0
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2015年1月21日 17:56:14 -0200
> Interesting approach, as math.random(), based on ansi C `rand()`, isn't really considered as a good random generator.
Lua 5.3 uses POSIX random instead of rand, in POSIX platforms.
> Personally, I did something analog, but as a change to the Lua source code, by defining a `luai_rand` macro in `luaconf.h`:
Lua 5.3 now supports macros l_rand and l_srand which can be set by the builder.