- Timestamp:
- 2016-05-11T05:16:25+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/cache/JCSCachedTileLoaderJob.java
r10181 r10185 5 5 import java.io.IOException; 6 6 import java.net.URL; 7 import java.security.SecureRandom; 7 8 import java.util.HashSet; 8 9 import java.util.List; 9 10 import java.util.Map; 10 import java.util.Random;11 11 import java.util.Set; 12 12 import java.util.concurrent.ConcurrentHashMap; … … 346 346 for (int i = 0; i < 5; ++i) { 347 347 if (urlConn.getResponseCode() == HttpURLConnection.HTTP_UNAVAILABLE) { 348 Thread.sleep(5000L+ (new Random()).nextInt(5000));348 Thread.sleep(5000L+new SecureRandom().nextInt(5000)); 349 349 continue; 350 350 }
Note:
See TracChangeset
for help on using the changeset viewer.