MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / randomStr

Function randomStr

IceFireDB-PubSub/test/test_test.go:146–152  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

144const letters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
145
146func randomStr(length int) string {
147 b := make([]byte, length)
148 for i := range b {
149 b[i] = letters[rand.Intn(len(letters))]
150 }
151 return string(b)
152}
153
154func directDoErr(tb testing.TB, c *proto.Client, args ...string) error {
155 tb.Helper()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected