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

Function RandomString

test/setup.go:297–304  ·  view source on GitHub ↗
(length int)

Source from the content-addressed store, hash-verified

295}
296
297func RandomString(length int) string {
298 randBytes := make([]byte, length)
299 _, err := rand.Read(randBytes)
300 if err != nil {
301 panic(fmt.Errorf("Error generating random string: %w", err))
302 }
303 return hex.EncodeToString(randBytes)[:length]
304}

Callers 1

TempFileFunction · 0.85

Calls 1

ReadMethod · 0.65

Tested by

no test coverage detected