From 51ad8379e6eddc86cf7f6408571f421a369afccd Mon Sep 17 00:00:00 2001 From: web3-bot Date: Tue, 15 Aug 2023 12:32:56 +0200 Subject: [PATCH] ci: uci/copy-templates (#207) * chore: bump go.mod to Go 1.20 and run go fix * chore: bump go.mod to Go 1.20 and run go fix * fix: stop using math/rand.Read in basic_tests * fix: stop using math/rand.Read in test_util --- fuzz/go.mod | 2 +- go.mod | 2 +- test/basic_tests.go | 2 +- test/test_util.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fuzz/go.mod b/fuzz/go.mod index 5708efa..68d1e18 100644 --- a/fuzz/go.mod +++ b/fuzz/go.mod @@ -1,6 +1,6 @@ module github.com/ipfs/go-datastore/fuzz -go 1.19 +go 1.20 require ( github.com/ipfs/go-datastore v0.6.0 diff --git a/go.mod b/go.mod index 57cbdfa..2fdc6e0 100644 --- a/go.mod +++ b/go.mod @@ -16,4 +16,4 @@ require ( go.uber.org/atomic v1.6.0 // indirect ) -go 1.19 +go 1.20 diff --git a/test/basic_tests.go b/test/basic_tests.go index c84000e..68172b9 100644 --- a/test/basic_tests.go +++ b/test/basic_tests.go @@ -3,8 +3,8 @@ package dstest import ( "bytes" "context" + "crypto/rand" "fmt" - "math/rand" "reflect" "strings" "testing" diff --git a/test/test_util.go b/test/test_util.go index 4cb4e10..7ac91cc 100644 --- a/test/test_util.go +++ b/test/test_util.go @@ -3,9 +3,9 @@ package dstest import ( "bytes" "context" + "crypto/rand" "encoding/base32" "errors" - "math/rand" "testing" dstore "github.com/ipfs/go-datastore"