Skip to content

Commit

Permalink
Merge pull request #155 from Niklp09/master
Browse files Browse the repository at this point in the history
Generate new randomseed after use
  • Loading branch information
joe7575 committed Dec 30, 2023
2 parents 44720ca + a9c8428 commit 4e4445f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions oil/explore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ local function oil_amount(pos)
local amount = math.random(OIL_MIN, OIL_MAX)
return amount
end
-- Generate new randomseed after use
math.randomseed(os.time())
return 0
end

Expand Down

0 comments on commit 4e4445f

Please sign in to comment.