Changeset dfcb81c


Ignore:
Timestamp:
Jan 11, 2011 10:20:05 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
4c1050b
Parents:
c29d091
Message:

use context random()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/reseed/Reseeder.java

    rc29d091 rdfcb81c  
    178178            while (tok.hasMoreTokens())
    179179                URLList.add(tok.nextToken().trim());
    180             Collections.shuffle(URLList);
     180            Collections.shuffle(URLList, _context.random());
    181181            if (defaulted && !SSLDisable) {
    182182                // put the non-SSL at the end of the SSL
     
    185185                while (tok.hasMoreTokens())
    186186                    URLList2.add(tok.nextToken().trim());
    187                 Collections.shuffle(URLList2);
     187                Collections.shuffle(URLList2, _context.random());
    188188                URLList.addAll(URLList2);
    189189            }
     
    264264
    265265                List<String> urlList = new ArrayList(urls);
    266                 Collections.shuffle(urlList);
     266                Collections.shuffle(urlList, _context.random());
    267267                int fetched = 0;
    268268                int errors = 0;
Note: See TracChangeset for help on using the changeset viewer.