We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65b0012 commit 80604b0Copy full SHA for 80604b0
framework/components/s3provider/minio.go
@@ -3,7 +3,7 @@ package s3provider
3
import (
4
"context"
5
"fmt"
6
- "math/rand"
+ "math/rand/v2"
7
"net"
8
"strconv"
9
@@ -270,7 +270,7 @@ const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
270
func randomStr(n int) string {
271
b := make([]byte, n)
272
for i := range b {
273
- b[i] = letterBytes[rand.Int63()%int64(len(letterBytes))]
+ b[i] = letterBytes[rand.IntN(len(letterBytes))]
274
}
275
276
return string(b)
0 commit comments