love.math.setRandomSeed now calls random() a couple times internally, to make similar seeds give less similar results when random() is called for the first time after setRandomSeed.

This commit is contained in:
Alex Szpakowski
2014-04-05 18:55:05 -03:00
parent 9dd3f70988
commit 4ea18d8bbc
3 changed files with 5 additions and 4 deletions
-1
View File
@@ -468,7 +468,6 @@ function love.run()
if love.math then
love.math.setRandomSeed(os.time())
for i=1,3 do love.math.random() end
end
if love.event then