aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorBence Ferdinandy <bence@ferdinandy.com>2024-07-11 11:34:19 +0200
committerRobin Jarry <robin@jarry.cc>2024-08-20 11:52:25 +0200
commit5d56a6fc75e8104e222a912caee61b1f0376b556 (patch)
tree88e2765ed4d8b684a5c278d010546c5ab820148d /main.go
parenta890fcb435e223897e9cacd92fc95673af45fb81 (diff)
downloadaerc-5d56a6fc75e8104e222a912caee61b1f0376b556.tar.gz
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 <bence@ferdinandy.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'main.go')
-rw-r--r--main.go5
1 files changed, 0 insertions, 5 deletions
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())
-}