MCPcopy
hub / github.com/usefathom/fathom / randomString

Function randomString

pkg/config/config.go:84–91  ·  view source on GitHub ↗
(len int)

Source from the content-addressed store, hash-verified

82}
83
84func randomString(len int) string {
85 bytes := make([]byte, len)
86 for i := 0; i < len; i++ {
87 bytes[i] = byte(65 + rand.Intn(25)) //A=65 and Z = 65+25
88 }
89
90 return string(bytes)
91}

Callers 2

TestRandomStringFunction · 0.70
ParseFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestRandomStringFunction · 0.56