Merge pull request #6335 from levigross/master

Fixed up if statement
Upstream-commit: 9ac293e1a8e1463f3fac1713213c9d250642ace8
Component: engine
This commit is contained in:
Michael Crosby
2014-06-11 11:51:57 -07:00

View File

@ -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)