1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

build: remove random.Seed since random generator is seeded automatically in go1.20

Now that the minimum version is go1.20 we can stop seeding the random
number generator.
This commit is contained in:
Nick Craig-Wood
2024-01-13 16:56:11 +00:00
parent 13fb2fb2ec
commit 938b43c26c
6 changed files with 0 additions and 75 deletions

View File

@@ -39,7 +39,6 @@ import (
"github.com/rclone/rclone/lib/atexit"
"github.com/rclone/rclone/lib/buildinfo"
"github.com/rclone/rclone/lib/exitcode"
"github.com/rclone/rclone/lib/random"
"github.com/rclone/rclone/lib/terminal"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
@@ -562,9 +561,6 @@ func AddBackendFlags() {
// Main runs rclone interpreting flags and commands out of os.Args
func Main() {
if err := random.Seed(); err != nil {
log.Fatalf("Fatal error: %v", err)
}
setupRootCommand(Root)
AddBackendFlags()
if err := Root.Execute(); err != nil {