You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use of pairs causes some map generators to be non-deterministic. Iteration order of pairs is undefined, so code like this won't give the same result every time it's run:
This more or less defeats the point of having a seedable RNG. Most likely also a problem in rot.js since iteration order of JS for..in construct is similarly undefined (per spec, but maybe some implementations are more predictable).
Fixing this would likely also fix #36, since pairs is mostly used to iterate over tables with x..','..y keys.
The text was updated successfully, but these errors were encountered:
Use of
pairs
causes some map generators to be non-deterministic. Iteration order of pairs is undefined, so code like this won't give the same result every time it's run:This more or less defeats the point of having a seedable RNG. Most likely also a problem in rot.js since iteration order of JS
for..in
construct is similarly undefined (per spec, but maybe some implementations are more predictable).Fixing this would likely also fix #36, since
pairs
is mostly used to iterate over tables withx..','..y
keys.The text was updated successfully, but these errors were encountered: