|
@@ -8,8 +8,8 @@ import (
|
|
|
|
|
|
func RandomString() string {
|
|
func RandomString() string {
|
|
id := make([]byte, 32)
|
|
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
|
|
panic(err) // This shouldn't happen
|
|
}
|
|
}
|
|
return hex.EncodeToString(id)
|
|
return hex.EncodeToString(id)
|