MCPcopy Create free account
hub / github.com/goadesign/goa / DeterministicRandomizer

Struct DeterministicRandomizer

expr/random.go:196–196  ·  view source on GitHub ↗

DeterministicRandomizer returns hard-coded values, removing all randomness from example generation

Source from the content-addressed store, hash-verified

194// DeterministicRandomizer returns hard-coded values, removing all randomness
195// from example generation
196type DeterministicRandomizer struct{}
197
198func (DeterministicRandomizer) ArrayLength() int { return 1 }
199func (DeterministicRandomizer) Int() int { return 1 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected