Commits

Alex Szpakowski  committed 31e2064

Improved error message when love.math.setRandomSeed(0) is attempted (resolves issue #876)

  • Participants
  • Parent commits 92b1b56

Comments (0)

Files changed (1)

File src/modules/math/RandomGenerator.cpp

 {
 	// 0 xor 0 is still 0, so Xorshift can't generate new numbers.
 	if (newseed.b64 == 0)
-		throw love::Exception("Invalid random seed.");
+		throw love::Exception("Random seed cannot be 0.");
 
 	seed = newseed;
 	rng_state = seed;