MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / randomJSONNumber

Function randomJSONNumber

pkg/util/json/random.go:147–149  ·  view source on GitHub ↗
(rng *rand.Rand)

Source from the content-addressed store, hash-verified

145}
146
147func randomJSONNumber(rng *rand.Rand) interface{} {
148 return json.Number(fmt.Sprintf("%v", rng.ExpFloat64()))
149}
150
151func doRandomJSON(rng *rand.Rand, cfg randConfig) interface{} {
152 if cfg.complexity <= 0 || rng.Intn(cfg.complexity) == 0 {

Callers 1

doRandomJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…