MCPcopy Index your code
hub / github.com/docker/cli / randomString

Function randomString

e2e/testutils/plugins.go:101–107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101func randomString() (string, error) {
102 b := make([]byte, 8)
103 if _, err := rand.Read(b); err != nil {
104 return "", err
105 }
106 return base64.StdEncoding.EncodeToString(b), nil
107}

Callers 1

buildPluginFunction · 0.85

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…