From 57b64da7dcd78412b57a13b2ba77076533062c9f Mon Sep 17 00:00:00 2001 From: web3-bot Date: Wed, 23 Aug 2023 09:26:15 +0000 Subject: [PATCH 1/7] chore: bump go.mod to Go 1.20 and run go fix --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 8db03b5..36862ed 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/libp2p/go-libp2p-xor -go 1.17 +go 1.20 require github.com/libp2p/go-libp2p-kbucket v0.3.1 From 1ffd4fee7b811c67d8a8c54eae55617855b24bbc Mon Sep 17 00:00:00 2001 From: web3-bot Date: Wed, 23 Aug 2023 09:26:15 +0000 Subject: [PATCH 2/7] fix: stop using the deprecated io/ioutil package --- trie/remove_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trie/remove_test.go b/trie/remove_test.go index d322c78..4113f30 100644 --- a/trie/remove_test.go +++ b/trie/remove_test.go @@ -1,9 +1,10 @@ package trie import ( - "github.com/libp2p/go-libp2p-xor/key" "math/rand" "testing" + + "github.com/libp2p/go-libp2p-xor/key" ) func TestImmutableRemoveIsImmutable(t *testing.T) { From 85eb6b12ef2f43497fb85f04168bb1f51b70dd4f Mon Sep 17 00:00:00 2001 From: web3-bot Date: Wed, 23 Aug 2023 12:23:13 +0200 Subject: [PATCH 3/7] Update health_test.go --- kademlia/health_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kademlia/health_test.go b/kademlia/health_test.go index d2086c7..fbc327d 100644 --- a/kademlia/health_test.go +++ b/kademlia/health_test.go @@ -1,6 +1,7 @@ package kademlia import ( + crand "crypto/rand" "math/rand" "testing" @@ -38,7 +39,7 @@ func randomTestTableHealthSubsetSamples(contactSize, knownSize int) *testTableHe func randomKey(size int) key.Key { k := make([]byte, size) - rand.Read(k) + crand.Read(k) return key.BytesKey(k) } From e97309954a9ee00a27315e38822097a6080662a6 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Wed, 23 Aug 2023 12:23:37 +0200 Subject: [PATCH 4/7] Update add_test.go --- trie/add_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trie/add_test.go b/trie/add_test.go index bf514bb..ea9f0b2 100644 --- a/trie/add_test.go +++ b/trie/add_test.go @@ -1,6 +1,7 @@ package trie import ( + crand "crypto/rand" "math/rand" "testing" @@ -77,7 +78,7 @@ func randomTestAddSample(setSize, keySizeByte int) *testAddSample { keySet := make([]key.Key, setSize) for i := range keySet { k := make([]byte, keySizeByte) - rand.Read(k) + crand.Read(k) keySet[i] = key.BytesKey(k) } return &testAddSample{ From ae48ccd31aaaad2a28f5ae8eb0bba0407a75736b Mon Sep 17 00:00:00 2001 From: web3-bot Date: Wed, 13 Mar 2024 14:58:04 +0000 Subject: [PATCH 5/7] chore: bump go.mod to Go 1.21 and run go fix --- go.mod | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 36862ed..fb92c36 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,7 @@ module github.com/libp2p/go-libp2p-xor -go 1.20 +go 1.21 + require github.com/libp2p/go-libp2p-kbucket v0.3.1 From 8638e1fa9f5f867e6c82d231020c4ac7a878cd99 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Wed, 13 Mar 2024 14:58:04 +0000 Subject: [PATCH 6/7] chore: run go mod tidy --- go.mod | 1 - 1 file changed, 1 deletion(-) diff --git a/go.mod b/go.mod index fb92c36..99efb86 100644 --- a/go.mod +++ b/go.mod @@ -2,7 +2,6 @@ module github.com/libp2p/go-libp2p-xor go 1.21 - require github.com/libp2p/go-libp2p-kbucket v0.3.1 require ( From 0ccacffaa1c3f6c05b2fea5544ac43ff6d59a8c4 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Fri, 23 Aug 2024 10:37:25 +0000 Subject: [PATCH 7/7] chore: bump go.mod to Go 1.22 and run go fix --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 99efb86..d6520fa 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/libp2p/go-libp2p-xor -go 1.21 +go 1.22 require github.com/libp2p/go-libp2p-kbucket v0.3.1