Address some lint warnings

This commit is contained in:
Łukasz Magiera
2019-07-02 15:05:43 +02:00
parent 7fdd369283
commit 4fcdd4a400
7 changed files with 21 additions and 6 deletions
+1
View File
@@ -9,6 +9,7 @@ import (
mh "github.com/multiformats/go-multihash"
)
// RandomPeerID generates random peer id
func RandomPeerID() (peer.ID, error) {
b, err := ioutil.ReadAll(io.LimitReader(rand.Reader, 32))
if err != nil {