- const random = secureRandom();
- const sign = random < 0.5 ? -1 : 1;
- const randomSum = delay * 0.2 * random; // 0-20% of the delay
- return delay + sign * randomSum;
-};
+ const random = secureRandom()
+ const sign = random < 0.5 ? -1 : 1
+ const randomSum = delay * 0.2 * random // 0-20% of the delay
+ return delay + sign * randomSum
+}