We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aff3d13 commit 3b7fa1fCopy full SHA for 3b7fa1f
rstr/main.go
@@ -1,12 +1,11 @@
1
package main
2
3
import (
4
+ "crypto/rand"
5
"encoding/base64"
6
"flag"
7
"fmt"
- "math/rand"
8
"strconv"
9
- "time"
10
11
"github.com/bcext/cashutil/base58"
12
"github.com/qshuai/tcolor"
@@ -27,7 +26,6 @@ func main() {
27
26
encode := flag.String("encode", string(base64Encoding), "Please input encode type (base64 encoded string with character '+/=')")
28
flag.Parse()
29
30
- rand.Seed(time.Now().UnixNano())
31
if *length > bytesLengthLimit {
32
fmt.Println(tcolor.WithColor(tcolor.Yellow, "the input length too big. use default length: "+strconv.Itoa(defaultBytesLength)))
33
*length = defaultBytesLength
0 commit comments