mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Renamed love.math.g/setRandomState and rng:g/setState to love.math.g/setRandomSeed and rng:g/setSeed.
getRandomSeed now always returns the previously set random seed instead of the current (implementation-dependent) random state.
This commit is contained in:
@@ -453,7 +453,7 @@ end
|
||||
function love.run()
|
||||
|
||||
if love.math then
|
||||
love.math.setRandomState(os.time())
|
||||
love.math.setRandomSeed(os.time())
|
||||
end
|
||||
|
||||
if love.event then
|
||||
|
||||
Reference in New Issue
Block a user