forked from I2P_Developers/i2p.i2p
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user