Skip to content

Commit

Permalink
Remove rand.Seed(), which was deprecated in Go 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
VojtechVitek committed Jun 3, 2024
1 parent 047ce9a commit 2f3585d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/pgkit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ import (
"errors"
"fmt"
"log"
mrand "math/rand"
"sort"
"testing"
"time"

sq "github.com/Masterminds/squirrel"
"github.com/georgysavva/scany/v2/pgxscan"
Expand All @@ -26,8 +24,6 @@ var (
)

func init() {
mrand.Seed(time.Now().UnixNano())

var err error
DB, err = pgkit.Connect("pgkit_test", pgkit.Config{
Database: "pgkit_test",
Expand Down

0 comments on commit 2f3585d

Please sign in to comment.