Skip to content

Commit

Permalink
More codes doc'd, code clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
drwill-ms committed Jul 12, 2021
1 parent f3c1add commit a80c914
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ public override ShouldRetry GetShouldRetry()
{
if (currentRetryCount < _retryCount)
{
double exponentialInterval = (Math.Pow(2.0, currentRetryCount) - 1.0)
* s_random.Next(
Random random = new Random();

double exponentialInterval =
(Math.Pow(2.0, currentRetryCount) - 1.0)
* random.Next(
(int)_deltaBackoff.TotalMilliseconds * 8 / 10,
(int)_deltaBackoff.TotalMilliseconds * 12 / 10)
+ _minBackoff.TotalMilliseconds;
Expand Down

0 comments on commit a80c914

Please sign in to comment.