summaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-02-18 20:41:34 +0800
committerEltrac <hi@guhub.cn>2025-02-18 20:41:34 +0800
commitcc557e0d76bf15ed41dbe69bda223f3509ece40a (patch)
tree9b1e22d1a6040769feb04c7e916253e4976e56a3 /main.lua
parent2aabcd0483323eaa968f0f891a87dc9d1a7092f1 (diff)
fix: reinitialize seed of pseudo-random generator
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 09bb082..433dcf7 100644
--- a/main.lua
+++ b/main.lua
@@ -29,6 +29,8 @@ function love.load()
renderer:add("objects", nil, drawObject.loot)
renderer:add("ui", nil, drawUI.ammoBar)
+ math.randomseed(os.time())
+
initGame()
end