MCPcopy Index your code
hub / github.com/databus23/helm-diff / generateRandomSequence

Function generateRandomSequence

diff/lcs_test.go:199–205  ·  view source on GitHub ↗
(rnd *rand.Rand, length, alphabetSize int)

Source from the content-addressed store, hash-verified

197}
198
199func generateRandomSequence(rnd *rand.Rand, length, alphabetSize int) []string {
200 result := make([]string, length)
201 for i := 0; i < length; i++ {
202 result[i] = fmt.Sprintf("item-%d", rnd.Intn(alphabetSize))
203 }
204 return result
205}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected