MCPcopy
hub / github.com/keploy/keploy / generateRandomString

Function generateRandomString

pkg/agent/proxy/syncMock/syncMock.go:51–57  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

49var nopLogger = zap.NewNop()
50
51func generateRandomString(n int) string {
52 sb := make([]byte, n)
53 for i := range sb {
54 sb[i] = charset[rand.Intn(len(charset))]
55 }
56 return string(sb)
57}
58
59type SyncMockManager struct {
60 // mu guards buffer, firstReqSeen, memoryPause, mappingChan,

Callers 3

FlushOwnedWindowsMethod · 0.85
ResolveRangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected