From 05fe88be7c80a99e5eaf85b6a20cd68f82c0849a Mon Sep 17 00:00:00 2001 From: Ryan Koesters Date: Sun, 25 Aug 2024 11:13:12 -0700 Subject: [PATCH] As of Go 1.20, math/rand.Seed is deprecated. The package now automatically seeds the default source. --- internal/app/application.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/app/application.go b/internal/app/application.go index 227b38b..5ce8069 100644 --- a/internal/app/application.go +++ b/internal/app/application.go @@ -4,10 +4,8 @@ package app import ( "errors" "flag" - "math/rand" "os" "sync" - "time" "github.com/gotk3/gotk3/glib" "github.com/gotk3/gotk3/gtk" @@ -115,9 +113,6 @@ func (app *Application) Startup() { app.LoadBookmarks() app.SetupCache() - - // ApplicationWindow.RandomComic() would like a seeded PRNG. - rand.Seed(time.Now().Unix()) } // Shutdown is called when the "shutdown" signal is emitted.