diff --git a/utils/random.go b/utils/random.go index d4d33c690..907f28eec 100644 --- a/utils/random.go +++ b/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)