summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChrist van Willegen <cvwillegen@gmail.com>2015-04-08 09:45:02 +0200
committerChrist van Willegen <cvwillegen@gmail.com>2015-04-08 09:45:02 +0200
commit926829cba33671a37f1eceade54be410ac6927e3 (patch)
tree668991d1671ccdaf10c24f70d57e1c088412facc
parente4b8eaa9d2e32ad7b89c848e3a9aa880772bd962 (diff)
downloadrockbox-926829cba33671a37f1eceade54be410ac6927e3.tar.gz
rockbox-926829cba33671a37f1eceade54be410ac6927e3.zip
Re-seed the random generator for each new game.
Change-Id: I1b814e8475798830d204b4838d98b8b671d93e02
-rw-r--r--apps/plugins/boomshine.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/plugins/boomshine.lua b/apps/plugins/boomshine.lua
index 2eb43dedbd..79b28c6776 100644
--- a/apps/plugins/boomshine.lua
+++ b/apps/plugins/boomshine.lua
@@ -353,6 +353,8 @@ if HAS_TOUCHSCREEN then
end
rb.backlight_force_on()
+math.randomseed(os.time())
+
local idx, highscore = 1, 0
while levels[idx] ~= nil do
local goal, nrBalls = levels[idx][1], levels[idx][2]