2005-05-25 duck

* Fixed PRNG bug (bugzilla #107)
This commit is contained in:
duck
2005-05-25 21:32:38 +00:00
committed by zzz
parent fef9d57483
commit c2696bba00
3 changed files with 10 additions and 5 deletions

View File

@ -34,7 +34,9 @@ public class PooledRandomSource extends RandomSource {
}
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();
return prng.harvester();
}
}
}

View File

@ -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
* Added a substantial optimization to the AES engine by caching the

View File

@ -15,9 +15,9 @@ import net.i2p.CoreVersion;
*
*/
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 long BUILD = 7;
public final static long BUILD = 8;
public static void main(String args[]) {
System.out.println("I2P Router version: " + VERSION);
System.out.println("Router ID: " + RouterVersion.ID);