MCPcopy Create free account
hub / github.com/UiPath/uipathcli / randomKey

Function randomKey

cache/file_cache_test.go:58–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func randomKey() string {
59 randBytes := make([]byte, 32)
60 _, err := rand.Read(randBytes)
61 if err != nil {
62 panic(fmt.Errorf("Error generating random cache key: %w", err))
63 }
64 return hex.EncodeToString(randBytes)
65}

Callers 2

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected