|
> On Пн 07.05.18 20:19, Roberto Ierusalimschy wrote:
> >What is present today in the latest release of Lua is 'rand'/'random',
> >not xorshift128plus.
>
> What about LuaJIT's PRNG? Having the same PRNG would be good for
> compatibility.
> "LuaJIT uses a Tausworthe PRNG with period 2^223 to implement
> math.random() and math.randomseed()."
I am no expert about PRNG, but according to some experts (the guys
who created xoroshiro, xorshift, etc.), "Our main 64-bit proposal for
an all-purpose, rock-solid generator is xoshiro256**". Moreover, it has a
quite simple implementation. What would be the "credentials" for
Tausworthe?
Do you have the code for this generator? Does it generate 64-bit numbers?
Is it easy to implement it even if the compiler does not support 64-bit
integers?
-- Roberto