This repository has been archived on 2022-07-30. You can view files and clone it, but cannot push or open issues/pull-requests.
mdb/util_test.go

16 lines
234 B
Go

package mdb
import (
"crypto/rand"
"encoding/hex"
mrand "math/rand"
)
func randString() string {
buf := make([]byte, 1+mrand.Intn(10))
if _, err := rand.Read(buf); err != nil {
panic(err)
}
return hex.EncodeToString(buf)
}