From 5d56a6fc75e8104e222a912caee61b1f0376b556 Mon Sep 17 00:00:00 2001 From: Bence Ferdinandy Date: Thu, 11 Jul 2024 11:34:19 +0200 Subject: go: bump minimal version to 1.21 and handle deprecations Go 1.18 is already EOL. go-maildir v0.5.0 requires go 1.20 at least. Since go 1.20 is also EOL, bump the minimum required go version to the first still supported version which is 1.21. Go 1.20 deprecated Seed and Read in math/rand. Update the code accordingly. Changelog-deprecated: Support for go 1.20 and older. Signed-off-by: Bence Ferdinandy Acked-by: Robin Jarry --- main.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 123d360d..efdbf653 100644 --- a/main.go +++ b/main.go @@ -4,7 +4,6 @@ import ( "context" "errors" "fmt" - "math/rand" "os" "runtime" "sort" @@ -303,7 +302,3 @@ loop: } } } - -func init() { - rand.Seed(time.Now().UnixNano()) -} -- cgit