4 ms·
I’ve replaced Lua’s random by this. I’ve posted about it here https://nullonerror.org/2025/08/02/replacing-lua-s-math-random-module-with-the-xorshift-algorithm/
by mococa 2mo ago
I’ve replaced Lua’s random by this. I’ve posted about it here https://nullonerror.org/2025/08/02/replacing-lua-s-math-random-module-with-the-xorshift-algorithm/ https://nullonerror.org/2025/08/02/replacing-lua-s-math-rand...
- dchest 2mo agoLua 5.4 and 5.5 use xoshiro256**: https://www.lua.org/manual/5.4/manual.html#pdf-math.random https://www.lua.org/manual/5.4/manual.html#pdf-math.random
- mococa 2mo agoGood to know. I use LuaJIT. But in any case I reverted that, befitting the overhead from my solution to Lua’s native was big.