Skip to content

Commit 80604b0

Browse files
committed
lint improvement
1 parent 65b0012 commit 80604b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework/components/s3provider/minio.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package s3provider
33
import (
44
"context"
55
"fmt"
6-
"math/rand"
6+
"math/rand/v2"
77
"net"
88
"strconv"
99

@@ -270,7 +270,7 @@ const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
270270
func randomStr(n int) string {
271271
b := make([]byte, n)
272272
for i := range b {
273-
b[i] = letterBytes[rand.Int63()%int64(len(letterBytes))]
273+
b[i] = letterBytes[rand.IntN(len(letterBytes))]
274274
}
275275

276276
return string(b)

0 commit comments

Comments
 (0)