MCPcopy Create free account
hub / github.com/livekit/livekit / NewNormalRandomJobLoadWithRNG

Function NewNormalRandomJobLoadWithRNG

pkg/agent/testutils/server.go:491–493  ·  view source on GitHub ↗
(mean, stddev float64, rng *rand.Rand)

Source from the content-addressed store, hash-verified

489}
490
491func NewNormalRandomJobLoadWithRNG(mean, stddev float64, rng *rand.Rand) JobLoad {
492 return normalRandomJobLoad{mean, stddev, rng.Float64}
493}
494
495func (s normalRandomJobLoad) Load() float32 {
496 u := 1 - s.rng()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…