From d61a03571878368dba3b51818c1e86e738e58930 Mon Sep 17 00:00:00 2001 From: Warlock-Dalbaeb Date: Wed, 9 Aug 2017 00:41:39 +0700 Subject: [PATCH 1/2] Oops --- vanitygen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vanitygen.cpp b/vanitygen.cpp index 57a810e..fc57d8b 100644 --- a/vanitygen.cpp +++ b/vanitygen.cpp @@ -60,7 +60,7 @@ void thread_find(const char * prefix){ #endif int main (int argc, char * argv[]) { - if (argc < 2) + if (argc < 3) { std::cout << "Usage: " << argv[0] << " filename generatestring " << std::endl; return 0; From 3c381072cbbc11b3d692a2c69779f137ac0a35c1 Mon Sep 17 00:00:00 2001 From: Warlock-Dalbaeb Date: Wed, 9 Aug 2017 00:43:15 +0700 Subject: [PATCH 2/2] oops --- vanitygen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vanitygen.cpp b/vanitygen.cpp index fc57d8b..9ce9225 100644 --- a/vanitygen.cpp +++ b/vanitygen.cpp @@ -60,14 +60,14 @@ void thread_find(const char * prefix){ #endif int main (int argc, char * argv[]) { - if (argc < 3) + if ( argc < 3 ) { std::cout << "Usage: " << argv[0] << " filename generatestring " << std::endl; return 0; } i2p::crypto::InitCrypto (false); type = i2p::data::SIGNING_KEY_TYPE_EDDSA_SHA512_ED25519; - if (argc > 3) + if ( argc > 3 ) type = NameToSigType(std::string(argv[3])); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////// keys = i2p::data::PrivateKeys::CreateRandomKeys (type);