[skip ci] Add desc comments for GenRandomStr (#9218)

Signed-off-by: dragondriver <jiquan.long@zilliz.com>
pull/9221/head
dragondriver 2021-10-04 19:28:12 +08:00 committed by GitHub
parent fb22186c72
commit f68425cbf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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)