Skip to content

Commit

Permalink
As of Go 1.20, math/rand.Seed is deprecated.
Browse files Browse the repository at this point in the history
The package now automatically seeds the default source.
  • Loading branch information
rkoesters committed Aug 25, 2024
1 parent 85cf547 commit 05fe88b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/app/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ package app
import (
"errors"
"flag"
"math/rand"
"os"
"sync"
"time"

"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 05fe88b

Please sign in to comment.