MCPcopy Create free account
hub / github.com/cloudfoundry/cli / NewGenerator

Function NewGenerator

util/randomword/generator.go:200–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

198}
199
200func NewGenerator() Generator {
201 return Generator{r: rand.New(rand.NewSource(time.Now().UnixNano()))}
202}
203
204func (gen Generator) Babble() string {
205 return fmt.Sprintf("%s-%s-%s", gen.RandomAdjective(), gen.RandomNoun(), gen.RandomTwoLetters())

Callers 4

FindAndBindRouteMethod · 0.92
ApplicationsMethod · 0.92
NewDependencyFunction · 0.92
generator_test.goFile · 0.70

Calls 1

NowMethod · 0.65

Tested by

no test coverage detected