MCPcopy Index your code
hub / github.com/GetStream/stream-cli / RandomString

Function RandomString

test/helpers.go:92–98  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

90}
91
92func RandomString(n int) string {
93 bytes := make([]byte, n)
94 for i := 0; i < n; i++ {
95 bytes[i] = byte(65 + rand.Intn(25)) // A=65 and Z = 65+25
96 }
97 return string(bytes)
98}

Callers 9

TestUpsertUserFunction · 0.92
TestCreateChannelFunction · 0.92
TestDeviceFunction · 0.92
TestCreateChannelTypeFunction · 0.92
TestUpdateChannelTypeFunction · 0.92
TestDeleteChannelTypeFunction · 0.92
InitChannelFunction · 0.85
CreateUserFunction · 0.85
CreateMessageFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestUpsertUserFunction · 0.74
TestCreateChannelFunction · 0.74
TestDeviceFunction · 0.74
TestCreateChannelTypeFunction · 0.74
TestUpdateChannelTypeFunction · 0.74
TestDeleteChannelTypeFunction · 0.74