stop using math/rand.Seed and Read in tests, bump go.mod version to 1.20 (#3936)

This commit is contained in:
Marten Seemann
2023-07-01 11:29:41 -07:00
committed by GitHub
parent 3d89e545d3
commit 0662afba63
16 changed files with 45 additions and 43 deletions

View File

@@ -4,10 +4,11 @@ import (
"bytes"
"fmt"
"math"
"math/rand"
"net"
"time"
"golang.org/x/exp/rand"
"github.com/quic-go/quic-go/internal/protocol"
"github.com/quic-go/quic-go/internal/qerr"
"github.com/quic-go/quic-go/quicvarint"
@@ -31,7 +32,7 @@ var _ = Describe("Transport Parameters", func() {
}
BeforeEach(func() {
rand.Seed(GinkgoRandomSeed())
rand.Seed(uint64(GinkgoRandomSeed()))
})
appendInitialSourceConnectionID := func(b []byte) []byte {