Distribute load evenly
authoralpha-ninja <alpha-ninja@users.noreply.github.com>
Mon, 4 Aug 2014 11:14:07 +0000 (13:14 +0200)
committeralpha-ninja <alpha-ninja@users.noreply.github.com>
Mon, 4 Aug 2014 11:14:07 +0000 (13:14 +0200)
The second factor was incorrect for both.

js/map.js

index ec9a05c..cd9eddd 100644 (file)
--- a/js/map.js
+++ b/js/map.js
@@ -1094,8 +1094,8 @@ var gTileService = {
                   .replace("{x}", norm.x)
                   .replace("{y}", norm.y)
                   .replace("{z}", norm.z)
-                  .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 2)))
-                  .replace("[1-4]", 1 + Math.floor(Math.random() * 3)),
+                  .replace("[a-c]", String.fromCharCode(97 + Math.floor(Math.random() * 3)))
+                  .replace("[1-4]", 1 + Math.floor(Math.random() * 4)),
                 true);
       XHR.responseType = "blob";
       XHR.addEventListener("load", function () {