Browse Source

Add README and crypto/rand for encrypt.go tool (#1057)

Jonathan Claudius 3 years ago
parent
commit
8dd3536fb2
2 changed files with 4 additions and 1 deletions
  1. 3 0
      node/hack/README.md
  2. 1 1
      node/hack/encrypt/encrypt.go

+ 3 - 0
node/hack/README.md

@@ -0,0 +1,3 @@
+This folder contains one-off cli tools to help with repair and discover operations.
+
+This code should not be imported by any other production tooling.

+ 1 - 1
node/hack/encrypt/encrypt.go

@@ -1,11 +1,11 @@
 package main
 package main
 
 
 import (
 import (
+	"crypto/rand"
 	"encoding/base64"
 	"encoding/base64"
 	"fmt"
 	"fmt"
 	"io"
 	"io"
 	"log"
 	"log"
-	"math/rand"
 	"os"
 	"os"
 
 
 	"github.com/certusone/wormhole/node/pkg/common"
 	"github.com/certusone/wormhole/node/pkg/common"