simplify things a bit

This commit is contained in:
Xavier Léauté 2014-01-09 14:45:13 -08:00
parent 632d6b0a78
commit ca90530085
1 changed files with 1 additions and 5 deletions

View File

@ -26,11 +26,7 @@ import java.util.Set;
public class RandomServerSelectorStrategy implements ServerSelectorStrategy public class RandomServerSelectorStrategy implements ServerSelectorStrategy
{ {
Random random; private static final Random random = new Random();
public RandomServerSelectorStrategy() {
this.random = new Random();
}
@Override @Override
public QueryableDruidServer pick(Set<QueryableDruidServer> servers) public QueryableDruidServer pick(Set<QueryableDruidServer> servers)