RandomUtil.getInt -> RandomUtil.getInRange.
This commit is contained in:
@@ -1408,7 +1408,7 @@ public class Application
|
||||
_trackingStart = time;
|
||||
}
|
||||
if (_trackingId == 0) {
|
||||
_trackingId = RandomUtil.getInt(1000000000, 100000000);
|
||||
_trackingId = RandomUtil.getInRange(100000001, 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.getInt(2000000000, 1000000000));
|
||||
cookie.append("&utmn=").append(RandomUtil.getInRange(1000000001, 2000000000));
|
||||
return cookie.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user