Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
92
func
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
TestUpsertUser
Function · 0.92
TestCreateChannel
Function · 0.92
TestDevice
Function · 0.92
TestCreateChannelType
Function · 0.92
TestUpdateChannelType
Function · 0.92
TestDeleteChannelType
Function · 0.92
InitChannel
Function · 0.85
CreateUser
Function · 0.85
CreateMessage
Function · 0.85
Calls
no outgoing calls
Tested by
6
TestUpsertUser
Function · 0.74
TestCreateChannel
Function · 0.74
TestDevice
Function · 0.74
TestCreateChannelType
Function · 0.74
TestUpdateChannelType
Function · 0.74
TestDeleteChannelType
Function · 0.74