Changeset 500f6cf


Ignore:
Timestamp:
Oct 7, 2010 6:42:30 PM (10 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
fbc20da
Parents:
a23ea5e
Message:

use context field

Location:
apps/i2ptunnel/java/src/net/i2p/i2ptunnel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelClient.java

    ra23ea5e r500f6cf  
    99import java.util.StringTokenizer;
    1010
    11 import net.i2p.I2PAppContext;
    1211import net.i2p.client.streaming.I2PSocket;
    1312import net.i2p.data.DataFormatException;
     
    111110        if (size == 1) // skip the rand in the most common case
    112111            return dests.get(0);
    113         int index = I2PAppContext.getGlobalContext().random().nextInt(size);
     112        int index = _context.random().nextInt(size);
    114113        return dests.get(index);
    115114    }
  • apps/i2ptunnel/java/src/net/i2p/i2ptunnel/I2PTunnelConnectClient.java

    ra23ea5e r500f6cf  
    147147            if (size <= 0)
    148148                return null;
    149             int index = I2PAppContext.getGlobalContext().random().nextInt(size);
     149            int index = _context.random().nextInt(size);
    150150            return _proxyList.get(index);
    151151        }
Note: See TracChangeset for help on using the changeset viewer.