From 0bcd287fcf625bb7c7ba51bb7f29c0436a02e3e2 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 1 Nov 2025 10:32:58 +0100 Subject: [PATCH] remote: tests: remove call to math/rand.Seed which is a no-op I misjudged the linter warning in 5141405 (Update dependencies, static checkers and Go to 1.24, 2025-10-17). rand.Seed is a no-op since 1.24. The test works fine without a static seed. --- remote/sync/files_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/remote/sync/files_test.go b/remote/sync/files_test.go index 2472a15..4f46935 100644 --- a/remote/sync/files_test.go +++ b/remote/sync/files_test.go @@ -6,7 +6,6 @@ package sync import ( "fmt" "io/fs" - "math/rand" "os" "regexp" "testing" @@ -3006,9 +3005,6 @@ file t.Fatal(err) } - // Deterministic temporary symlink names - rand.Seed(0) //nolint:staticcheck // SA1019 need fixed seed - var changed bool err = s.syncFile(tc.file, &changed) testutil.AssertErrorEqual(t, "err", err, tc.expErr) -- 2.51.2