import net.i2p.util.Log;
import net.i2p.util.VersionComparator;
public abstract class TunnelPeerSelector {
public abstract List<Hash> selectPeers(RouterContext ctx, TunnelPoolSettings settings);
protected int getLength(RouterContext ctx, TunnelPoolSettings settings) {
<BUG>int length = settings.getLength();
if (settings.getLengthVariance() != 0) {
</BUG>
int skew = settings.getLengthVariance();
if (skew > 0)

import net.i2p.util.Log;
import net.i2p.util.VersionComparator;
public abstract class TunnelPeerSelector {
public abstract List<Hash> selectPeers(RouterContext ctx, TunnelPoolSettings settings);
protected int getLength(RouterContext ctx, TunnelPoolSettings settings) {
int length = settings.getLength();
int override = settings.getLengthOverride();
if (override >= 0) {
length = override;
} else if (settings.getLengthVariance() != 0) {
int skew = settings.getLengthVariance();
if (skew > 0)
