Merge remote-tracking branch 'origin' into feature/est-simpleenroll

This commit is contained in:
Tuan Dang
2024-08-22 14:54:34 -07:00
65 changed files with 2875 additions and 4735 deletions
+5
View File
@@ -1,3 +1,8 @@
export const daysToMillisecond = (days: number) => days * 24 * 60 * 60 * 1000;
export const secondsToMillis = (seconds: number) => seconds * 1000;
export const applyJitter = (delayMs: number, jitterMs: number) => {
const jitter = Math.floor(Math.random() * (2 * jitterMs)) - jitterMs;
return delayMs + jitter;
};