ginger/expr/util.go
2016-08-01 18:08:51 -06:00

15 lines
191 B
Go

package expr
import (
"encoding/hex"
"math/rand"
)
func randStr() string {
b := make([]byte, 16)
if _, err := rand.Read(b); err != nil {
panic(err)
}
return hex.EncodeToString(b)
}