diff --git a/components/engine/utils/random.go b/components/engine/utils/random.go index d4d33c690a..907f28eec3 100644 --- a/components/engine/utils/random.go +++ b/components/engine/utils/random.go @@ -8,8 +8,8 @@ import ( func RandomString() string { id := make([]byte, 32) - _, err := io.ReadFull(rand.Reader, id) - if err != nil { + + if _, err := io.ReadFull(rand.Reader, id); err != nil { panic(err) // This shouldn't happen } return hex.EncodeToString(id)