ginger/expr/util.go

15 lines
191 B
Go
Raw Normal View History

2016-08-02 00:08:51 +00:00
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)
}