Changeset f15ad23


Ignore:
Timestamp:
Jan 10, 2011 3:51:02 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e4bb053
Parents:
0c5d88d
Message:

findbugs, use context random()

Location:
router/java/src/net/i2p/router/message
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/message/GarlicMessageParser.java

    r0c5d88d rf15ad23  
    4848        if (decrData == null) {
    4949            if (_log.shouldLog(Log.WARN))
    50                 _log.warn("Decryption of garlic message failed (data = " + encData + ")", new Exception("Decrypt fail"));
     50                _log.warn("Decryption of garlic message failed", new Exception("Decrypt fail"));
    5151            return null;
    5252        } else {
  • router/java/src/net/i2p/router/message/OutboundClientMessageOneShotJob.java

    r0c5d88d rf15ad23  
    250250
    251251        // If the last leaseSet we sent him is still good, don't bother sending again
    252         long now = getContext().clock().now();
    253252        synchronized (_leaseSetCache) {
    254253            if (!force) {
     
    327326            return false;
    328327        }
    329         long now = getContext().clock().now();
    330328
    331329        // Use the same lease if it's still good
     
    374372        // randomize the ordering (so leases with equal # of failures per next
    375373        // sort are randomly ordered)
    376         Collections.shuffle(leases);
     374        Collections.shuffle(leases, getContext().random());
    377375       
    378376/****
     
    794792    private TunnelInfo selectOutboundTunnel(Destination to) {
    795793        TunnelInfo tunnel;
    796         long now = getContext().clock().now();
    797794        synchronized (_tunnelCache) {
    798795            /**
Note: See TracChangeset for help on using the changeset viewer.