This repository has been archived on 2022-07-30. You can view files and clone it, but cannot push or open issues/pull-requests.
|
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)
|
|
}
|