MCPcopy Create free account
hub / github.com/apache/fesod / getRandomDelay

Function getRandomDelay

website/github-avatar.js:34–36  ·  view source on GitHub ↗

* Generates a random delay between min and max milliseconds * @param {number} min - Minimum delay in milliseconds * @param {number} max - Maximum delay in milliseconds * @returns {number} Random delay in milliseconds

(min, max)

Source from the content-addressed store, hash-verified

32 * @returns {number} Random delay in milliseconds
33 */
34function getRandomDelay(min, max) {
35 return Math.floor(Math.random() * (max - min + 1)) + min;
36}
37
38/**
39 * Fetches avatar image from GitHub and converts it to base64

Callers 1

processAvatarsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected