Merge branch 'randomlib' into 'master'

Moves from lua random library to love2d random library

See merge request duncathan/cave-story-randomizer!11
This commit is contained in:
duncathan salt 2019-03-25 08:16:44 +00:00
commit 57871e0ef1
2 changed files with 2 additions and 2 deletions

View file

@ -12,7 +12,7 @@ local next, type, select, pcall = next, type, select, pcall
local setmetatable, getmetatable = setmetatable, getmetatable local setmetatable, getmetatable = setmetatable, getmetatable
local t_insert, t_sort = table.insert, table.sort local t_insert, t_sort = table.insert, table.sort
local t_remove,t_concat = table.remove, table.concat local t_remove,t_concat = table.remove, table.concat
local randomseed, random, huge = math.randomseed, math.random, math.huge local randomseed, random, huge = love.math.setRandomSeed, love.math.random, math.huge
local floor, max, min = math.floor, math.max, math.min local floor, max, min = math.floor, math.max, math.min
local rawget = rawget local rawget = rawget
local unpack = table.unpack or unpack local unpack = table.unpack or unpack

View file

@ -72,7 +72,7 @@ end
function C:_seedRngesus() function C:_seedRngesus()
local seed = tostring(os.time()) local seed = tostring(os.time())
math.randomseed(seed) love.math.setRandomSeed(seed)
logNotice(('Offering seed "%s" to RNGesus'):format(seed)) logNotice(('Offering seed "%s" to RNGesus'):format(seed))
end end