Merge branch 'devrandom' into 'master'
PRNG: Switch to /dev/random by default See merge request i2p-hackers/i2p.i2p!238
This commit is contained in:
@ -170,7 +170,7 @@ public class RouterContext extends I2PAppContext {
|
||||
// or about 2 seconds per buffer - so about 200x faster
|
||||
// to fill than to drain - so we don't need too many
|
||||
long maxMemory = SystemVersion.getMaxMemory();
|
||||
long maxBuffs = (SystemVersion.isAndroid() || SystemVersion.isARM()) ? 3 : 5;
|
||||
long maxBuffs = 3;
|
||||
long buffs = Math.min(maxBuffs, Math.max(2, maxMemory / (21 * 1024 * 1024)));
|
||||
envProps.setProperty("prng.buffers", Long.toString(buffs));
|
||||
}
|
||||
|
Reference in New Issue
Block a user