diff options
Diffstat (limited to 'test/keygen.go')
-rw-r--r-- | test/keygen.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/keygen.go b/test/keygen.go index 986342368..5397bc269 100644 --- a/test/keygen.go +++ b/test/keygen.go @@ -3,12 +3,18 @@ package main import ( "encoding/hex" "fmt" + "os" + "strconv" "github.com/dexon-foundation/dexon/crypto" ) func main() { - for i := 0; i < 4; i++ { + count, err := strconv.Atoi(os.Args[1]) + if err != nil { + panic(err) + } + for i := 0; i < count; i++ { privKey, err := crypto.GenerateKey() if err != nil { panic(err) |