From e4ec00a5d2f088f3d4389f1918018ef281508b1b Mon Sep 17 00:00:00 2001 From: Vaibhav Kamra Date: Tue, 13 Jun 2023 14:43:47 -0700 Subject: [PATCH] Update to go 1.20 (#3609) Release notes: https://tip.golang.org/doc/go1.20 Changes required: - Updated `go.mod` - this also controls what CI uses - `rand` is now automatically seeded --- #### Does this PR need a docs update or release note? - [ ] :white_check_mark: Yes, it's included - [ ] :clock1: Yes, but in a later PR - [x] :no_entry: No #### Type of change - [ ] :sunflower: Feature - [ ] :bug: Bugfix - [ ] :world_map: Documentation - [ ] :robot: Supportability/Tests - [x] :computer: CI/Deployment - [ ] :broom: Tech Debt/Cleanup #### Issue(s) * #3568 #### Test Plan - [ ] :muscle: Manual - [x] :zap: Unit test - [x] :green_heart: E2E --- src/go.mod | 2 +- src/internal/m365/exchange/mock/collections.go | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/go.mod b/src/go.mod index a0d4eae9d..3c154584d 100644 --- a/src/go.mod +++ b/src/go.mod @@ -1,6 +1,6 @@ module github.com/alcionai/corso/src -go 1.19 +go 1.20 replace github.com/kopia/kopia => github.com/alcionai/kopia v0.12.2-0.20230502235504-2509b1d72a79 diff --git a/src/internal/m365/exchange/mock/collections.go b/src/internal/m365/exchange/mock/collections.go index 4d78523b1..36de3cfd1 100644 --- a/src/internal/m365/exchange/mock/collections.go +++ b/src/internal/m365/exchange/mock/collections.go @@ -89,8 +89,6 @@ func NewContactCollection(pathRepresentation path.Path, numMessagesToReturn int) Names: []string{}, } - rand.Seed(time.Now().UnixNano()) - middleNames := []string{ "Argon", "Bernard",