shenjianeng opened a new pull request, #490:
URL: https://github.com/apache/curator/pull/490
fix sleepMs overflow
```java
public class Main {
private static final Random random = new Random();
private static int baseSleepTimeMs = Integer.MAX_VALUE;
public static void main(String[] args) {
int retryCount = 2;
long sleepMs1 = baseSleepTimeMs * Math.min(2, random.nextInt(1 <<
(retryCount + 1)));
long sleepMs2 = (long) baseSleepTimeMs * Math.min(2,
random.nextInt(1 << (retryCount + 1)));
System.out.println(sleepMs1);
System.out.println(sleepMs2);
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]