solved a seed thingie

This commit is contained in:
bizcochito 2021-03-18 18:39:26 +01:00
parent b81d7213c3
commit eea008e8c1
No known key found for this signature in database
GPG Key ID: 4A514B3A7A673EB6
1 changed files with 3 additions and 2 deletions

View File

@ -42,8 +42,9 @@ end
function love.keypressed(key) function love.keypressed(key)
if key == "z" then if key == "z" then
obj_list = {} obj_list = {}
notsorandomseed = love.data.encode("string", "hex", love.data.hash("sha256", os.time())) notsorandomseed = os.time()
math.randomseed(tonumber(notsorandomseed, 16)) math.randomseed(notsorandomseed)
notsorandomseed = love.data.encode("string", "hex", love.data.hash("sha256", notsorandomseed))
generate_museum(0,0,0) generate_museum(0,0,0)
end end
if key == "escape" then if key == "escape" then