diff options
Diffstat (limited to 'weed/filer/filechunks_test.go')
| -rw-r--r-- | weed/filer/filechunks_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/filechunks_test.go b/weed/filer/filechunks_test.go index 4af2af3f6..4ae7d6133 100644 --- a/weed/filer/filechunks_test.go +++ b/weed/filer/filechunks_test.go @@ -5,7 +5,7 @@ import ( "fmt" "log" "math" - "math/rand" + "math/rand/v2" "strconv" "testing" @@ -71,7 +71,7 @@ func TestRandomFileChunksCompact(t *testing.T) { var chunks []*filer_pb.FileChunk for i := 0; i < 15; i++ { - start, stop := rand.Intn(len(data)), rand.Intn(len(data)) + start, stop := rand.IntN(len(data)), rand.IntN(len(data)) if start > stop { start, stop = stop, start } |
