SAPI: Fix seed parameter truncation for LuaPseudoRandom constructor
authorkwolekr <kwolekr@minetest.net>
Mon, 26 Oct 2015 08:01:01 +0000 (04:01 -0400)
committerkwolekr <kwolekr@minetest.net>
Mon, 26 Oct 2015 08:04:52 +0000 (04:04 -0400)
commitbc0318d2fc0d435e20b1186203ce2908162241ca
treed436daeb21ca767a07b00c931885e8fb08414e2a
parent306b0670916fee8d0316a69f161c7a9b14e9516d
SAPI: Fix seed parameter truncation for LuaPseudoRandom constructor

Also fix a potential seed truncation issue on platforms where the
range of ptrdiff_t (the underlying type of lua_Integer) is too small.
src/script/lua_api/l_noise.cpp