MCPcopy Create free account
hub / github.com/Shopify/goose / NewStaticSource

Function NewStaticSource

random/static.go:11–13  ·  view source on GitHub ↗

NewStaticSource returns a rand.Source that always returns the seeded value. Useful for tests.

(value int64)

Source from the content-addressed store, hash-verified

9
10// NewStaticSource returns a rand.Source that always returns the seeded value. Useful for tests.
11func NewStaticSource(value int64) rand.Source {
12 return &staticSource{value}
13}
14
15type staticSource struct {
16 value int64

Callers 1

NewStaticFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected