Initial commit
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
export declare function fullJitter(delay: number): number;
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
function fullJitter(delay) {
|
||||
var jitteredDelay = Math.random() * delay;
|
||||
return Math.round(jitteredDelay);
|
||||
}
|
||||
exports.fullJitter = fullJitter;
|
||||
//# sourceMappingURL=full.jitter.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"full.jitter.js","sourceRoot":"","sources":["../../../src/jitter/full/full.jitter.ts"],"names":[],"mappings":";;AAAA,SAAgB,UAAU,CAAC,KAAa;IACpC,IAAM,aAAa,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC;IAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;AACrC,CAAC;AAHD,gCAGC"}
|
||||
Reference in New Issue
Block a user