mirror of https://github.com/milvus-io/milvus.git
[skip ci] Add desc comments for GenRandomStr (#9218)
Signed-off-by: dragondriver <jiquan.long@zilliz.com>pull/9221/head
parent
fb22186c72
commit
f68425cbf6
|
@ -33,6 +33,7 @@ func RandomString(n int) string {
|
|||
return string(b)
|
||||
}
|
||||
|
||||
// GenRandomStr generates a random string.
|
||||
func GenRandomStr() string {
|
||||
l := rand.Uint64()%10 + 1
|
||||
b := make([]byte, l)
|
||||
|
|
Loading…
Reference in New Issue