Skip to content

Commit 784234a

Browse files
committed
[-] fix SA1019 staticcheck linter error for Go v1.20
1 parent a6f65ed commit 784234a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/pgengine/bootstrap.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ type PgEngine struct {
6767
// where all IDs are the same across all running containers, e.g. 1
6868
func (pge *PgEngine) Getsid() int32 {
6969
if pge.sid == 0 {
70-
rand.Seed(time.Now().UnixNano())
71-
pge.sid = rand.Int31()
70+
r := rand.New(rand.NewSource(time.Now().UnixNano()))
71+
pge.sid = r.Int31()
7272
}
7373
return pge.sid
7474
}

0 commit comments

Comments
 (0)