MCPcopy Create free account
hub / github.com/fnproject/fn / randStringBytes

Function randStringBytes

examples/tutorial/logging/main.go:16–22  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

14}
15
16func randStringBytes(n int) string {
17 b := make([]byte, n)
18 for i := range b {
19 b[i] = lBytes[rand.Intn(len(lBytes))]
20 }
21 return string(b)
22}
23
24func main() {
25 out := &outputSize{Size: 64 * 1024}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected