forked from I2P_Developers/i2p.i2p
@ -34,7 +34,9 @@ public class PooledRandomSource extends RandomSource {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private final RandomSource pickPRNG() {
|
private final RandomSource pickPRNG() {
|
||||||
return _pool[(_nextPool++) % POOL_SIZE];
|
int i = _nextPool;
|
||||||
|
_nextPool = (_nextPool++) % POOL_SIZE;
|
||||||
|
return _pool[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -138,4 +140,4 @@ public class PooledRandomSource extends RandomSource {
|
|||||||
RandomSource prng = pickPRNG();
|
RandomSource prng = pickPRNG();
|
||||||
return prng.harvester();
|
return prng.harvester();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
$Id: history.txt,v 1.204 2005/05/01 12:21:50 jrandom Exp $
|
$Id: history.txt,v 1.205 2005/05/01 21:35:16 jrandom Exp $
|
||||||
|
|
||||||
|
2005-05-25 duck
|
||||||
|
* Fixed PRNG bug (bugzilla #107)
|
||||||
|
|
||||||
2005-05-01 jrandom
|
2005-05-01 jrandom
|
||||||
* Added a substantial optimization to the AES engine by caching the
|
* Added a substantial optimization to the AES engine by caching the
|
||||||
|
@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class RouterVersion {
|
public class RouterVersion {
|
||||||
public final static String ID = "$Revision: 1.195 $ $Date: 2005/05/01 12:21:49 $";
|
public final static String ID = "$Revision: 1.196 $ $Date: 2005/05/01 21:35:16 $";
|
||||||
public final static String VERSION = "0.5.0.7";
|
public final static String VERSION = "0.5.0.7";
|
||||||
public final static long BUILD = 7;
|
public final static long BUILD = 8;
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
System.out.println("I2P Router version: " + VERSION);
|
System.out.println("I2P Router version: " + VERSION);
|
||||||
System.out.println("Router ID: " + RouterVersion.ID);
|
System.out.println("Router ID: " + RouterVersion.ID);
|
||||||
|
Reference in New Issue
Block a user