mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Reverted commit 14ca947 (love.math.setRandomSeed internally calling random() a few times.) The change can break existing 0.9.x games so it will be pushed back to the minor branch.
This commit is contained in:
@@ -81,11 +81,6 @@ void RandomGenerator::setSeed(RandomGenerator::Seed newseed)
|
||||
|
||||
seed = newseed;
|
||||
rng_state = seed;
|
||||
|
||||
// Xorshift's first couple results after seeding will be similar to results
|
||||
// from very similar seeds, so we immediately discard them here.
|
||||
for (int i = 0; i < 2; i++)
|
||||
rand();
|
||||
}
|
||||
|
||||
RandomGenerator::Seed RandomGenerator::getSeed() const
|
||||
|
||||
Reference in New Issue
Block a user