From f64038031f0900e9269a2381f04c702fc4fcce55 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Mon, 14 Aug 2023 11:07:05 +0000 Subject: [PATCH 1/2] 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 36c0a5f..7f39a21 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ipfs/go-ipfs-cmds -go 1.19 +go 1.20 require ( github.com/ipfs/boxo v0.8.0 From 05b48de88cc8c16bdb49c7f36219398954cd0923 Mon Sep 17 00:00:00 2001 From: web3-bot Date: Tue, 15 Aug 2023 12:16:10 +0200 Subject: [PATCH 2/2] fix: stop using math/rand.Read --- http/parse.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/parse.go b/http/parse.go index 70665b7..ea2d6df 100644 --- a/http/parse.go +++ b/http/parse.go @@ -1,10 +1,10 @@ package http import ( + "crypto/rand" "encoding/base32" "fmt" "io" - "math/rand" "mime" "net/http" "strconv"