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)
if key == "z" then
obj_list = {}
notsorandomseed = love.data.encode("string", "hex", love.data.hash("sha256", os.time()))
math.randomseed(tonumber(notsorandomseed, 16))
notsorandomseed = os.time()
math.randomseed(notsorandomseed)
notsorandomseed = love.data.encode("string", "hex", love.data.hash("sha256", notsorandomseed))
generate_museum(0,0,0)
end
if key == "escape" then