Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ jitter
Function
jitter
packages/core/src/util/flock.ts:103–107 ·
view source on GitHub ↗
(ms: number)
Source
from the content-addressed store, hash-verified
101
}
102
103
function
jitter(ms: number) {
104
const
j = Math.floor(ms * 0.3)
105
const
d = Math.floor(Math.random() * (2 * j + 1)) - j
106
return
Math.max(0, ms + d)
107
}
108
109
function
mono() {
110
return
performance.now()
Callers
1
acquireLockDir
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected