Updated to match Mark's original intent, which was to select values

from 100000000 to 999999999 and 1000000000 to 1999999999.  Apparently
no one used getInt(int, int) correctly.
This commit is contained in:
Andrzej Kapolka
2010-04-06 02:05:48 +00:00
parent d0778f3a2c
commit 8c9e62f22a
@@ -1408,7 +1408,7 @@ public class Application
_trackingStart = time;
}
if (_trackingId == 0) {
_trackingId = RandomUtil.getInRange(100000001, 1000000000);
_trackingId = RandomUtil.getInRange(100000000, 1000000000);
}
StringBuilder cookie = new StringBuilder("&utmcc=__utma%3D").append(_trackingGAHash);
cookie.append(".").append(_trackingId);
@@ -1417,7 +1417,7 @@ public class Application
cookie.append("__utmz%3D").append(_trackingGAHash).append(".");
cookie.append(_trackingStart).append(".1.1.");
cookie.append("utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B");
cookie.append("&utmn=").append(RandomUtil.getInRange(1000000001, 2000000000));
cookie.append("&utmn=").append(RandomUtil.getInRange(1000000000, 2000000000));
return cookie.toString();
}