mirror of
https://github.com/clearlinux/docker.git
synced 2026-11-19 12:26:03 +00:00
+2
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user