Changeset e64ad7c for core


Ignore:
Timestamp:
Aug 26, 2018 3:13:49 PM (21 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c9002b32, f6c4535
Parents:
1f92232
Message:

More findbugs all over

Location:
core/java/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/gnu/crypto/prng/FortunaStandalone.java

    r1f92232 re64ad7c  
    110110  int pool0Count;
    111111  int reseedCount;
    112   static long refillCount = 0;
    113   static long lastRefill = System.currentTimeMillis();
     112  //static long refillCount = 0;
     113  //static long lastRefill = System.currentTimeMillis();
    114114
    115115  public static final String SEED = "gnu.crypto.prng.fortuna.seed";
     
    127127    allocBuffer();
    128128  }
     129
     130  /** Unused, see AsyncFortunaStandalone */
    129131  protected void allocBuffer() {
    130132    buffer = new byte[4*1024*1024]; //256]; // larger buffer to reduce churn
    131133  }
    132134
     135  /** Unused, see AsyncFortunaStandalone */
    133136  public void seed(byte val[]) {
    134137      Map<String, byte[]> props = Collections.singletonMap(SEED, val);
     
    146149  }
    147150
     151  /** Unused, see AsyncFortunaStandalone */
    148152  public void fillBlock()
    149153  {
    150     long start = System.currentTimeMillis();
     154    //long start = System.currentTimeMillis();
    151155    if (pool0Count >= MIN_POOL_SIZE
    152156        && System.currentTimeMillis() - lastReseed > 100)
     
    163167      }
    164168    generator.nextBytes(buffer);
    165     long now = System.currentTimeMillis();
    166     long diff = now-lastRefill;
    167     lastRefill = now;
    168     long refillTime = now-start;
    169     System.out.println("Refilling " + (++refillCount) + " after " + diff + " for the PRNG took " + refillTime);
     169    //long now = System.currentTimeMillis();
     170    //long diff = now-lastRefill;
     171    //lastRefill = now;
     172    //long refillTime = now-start;
     173    //System.out.println("Refilling " + (++refillCount) + " after " + diff + " for the PRNG took " + refillTime);
    170174  }
    171175
  • core/java/src/net/i2p/client/naming/MetaNamingService.java

    r1f92232 re64ad7c  
    214214    public void export(Writer out, Properties options) throws IOException {
    215215        for (NamingService ns : _services) {
    216              export(out, options);
     216             ns.export(out, options);
    217217        }
    218218    }
Note: See TracChangeset for help on using the changeset viewer.