Author: ron.sigal(a)jboss.com
Date: 2009-09-02 19:41:45 -0400 (Wed, 02 Sep 2009)
New Revision: 5440
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transporter/DefaultLoadBalancer.java
Log:
JBREM-1105: Corrected range in call to Random.nextInt().
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/transporter/DefaultLoadBalancer.java
===================================================================
---
remoting2/branches/2.2/src/main/org/jboss/remoting/transporter/DefaultLoadBalancer.java 2009-09-02
23:41:06 UTC (rev 5439)
+++
remoting2/branches/2.2/src/main/org/jboss/remoting/transporter/DefaultLoadBalancer.java 2009-09-02
23:41:45 UTC (rev 5440)
@@ -17,7 +17,7 @@
int size = servers.size();
if (size > 1)
{
- index = new Random().nextInt(size - 1);
+ index = new Random().nextInt(size);
}
}
Show replies by date