Skip to content

Commit

Permalink
Merge pull request #109 from libp2p/uci/copy-templates
Browse files Browse the repository at this point in the history
ci: uci/copy-templates
  • Loading branch information
web3-bot authored Aug 15, 2023
2 parents 1a5171a + d588d3f commit f03ed39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/libp2p/go-yamux/v4

go 1.19
go 1.20

require (
github.com/libp2p/go-buffer-pool v0.0.2
Expand Down
4 changes: 2 additions & 2 deletions session_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1693,8 +1693,8 @@ func TestInitialStreamWindow(t *testing.T) {
maxWindow = 5 * initialStreamWindow
transferSize = 10 * maxWindow
)
rand.Seed(time.Now().UnixNano())
randomUint32 := func(min, max uint32) uint32 { return uint32(rand.Int63n(int64(max-min))) + min }
r := rand.New(rand.NewSource(time.Now().UnixNano()))
randomUint32 := func(min, max uint32) uint32 { return uint32(r.Int63n(int64(max-min))) + min }

cconf := DefaultConfig()
cconf.InitialStreamWindowSize = randomUint32(initialStreamWindow, maxWindow)
Expand Down

0 comments on commit f03ed39

Please sign in to comment.