Skip to content
Snippets Groups Projects
Unverified Commit 2a3f56ba authored by Angelo Capossele's avatar Angelo Capossele Committed by GitHub
Browse files

:sparkles: Add rand-seed tool (#710)

parent 4032c81b
No related branches found
No related tags found
No related merge requests found
package main
import (
"crypto/rand"
"encoding/base64"
"fmt"
"github.com/mr-tron/base58"
)
func main() {
b := make([]byte, 32)
_, err := rand.Read(b)
if err != nil {
fmt.Println(err)
return
}
fmt.Printf("base64:%s\n", base64.StdEncoding.EncodeToString(b))
fmt.Printf("base58:%s\n", base58.Encode(b))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment