Skip to content

Commit ce5624d

Browse files
committed
fix: remove use of deprecated function (linting)
1 parent f063ec9 commit ce5624d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/pull_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func seedRandomNumberGenerator(t *testing.T) {
212212
if _, err := crypto_rand.Read(b[:]); err != nil {
213213
t.Fatalf("error seeding random number generator: %v", err)
214214
}
215-
math_rand.Seed(int64(binary.LittleEndian.Uint64(b[:])))
215+
math_rand.New(math_rand.NewSource(int64(binary.LittleEndian.Uint64(b[:]))))
216216
}
217217

218218
// mockLibraryServer returns *httptest.Server that mocks Cloud Library server; in particular,

0 commit comments

Comments
 (0)