increase rekey probability

This commit is contained in:
zzz
2015-10-10 15:45:54 +00:00
parent dd4d12f287
commit 68aa8800b6

View File

@ -112,9 +112,9 @@ class LoadRouterInfoJob extends JobImpl {
boolean sigTypeChanged = stype != cstype;
if (sigTypeChanged && getContext().getProperty(CreateRouterInfoJob.PROP_ROUTER_SIGTYPE) == null) {
// Not explicitly configured, and default has changed
// Give a 10% chance of rekeying for each restart
// TODO reduce from 20 to ~3 (i.e. increase probability) in future release
if (getContext().random().nextInt(20) > 0) {
// Give a 15% chance of rekeying for each restart
// TODO reduce to ~3 (i.e. increase probability) in future release
if (getContext().random().nextInt(7) > 0) {
sigTypeChanged = false;
if (_log.shouldWarn())
_log.warn("Deferring RI rekey from " + stype + " to " + cstype);