luna-core 2.13.0

Pure-Rust Lua runtime (interpreter only, zero third-party dependencies). The JIT-equipped variant lives in the `luna-jit` crate.
Documentation
1
2
3
4
5
6
7
8
9
10
-- v2.11 CORPUS-II: math.randomseed determinism.
-- Both PUC and luna after randomseed(seed) should produce same sequence.
math.randomseed(42, 0)
local a = math.random(1, 1000)
local b = math.random(1, 1000)
math.randomseed(42, 0)
local c = math.random(1, 1000)
local d = math.random(1, 1000)
print(a == c, b == d)  -- true true
-- but the actual values may differ luna vs PUC, so don't print.