o2 flag + fedora depedencies support + #92 issue

This commit is contained in:
Ваше имяэ 2023-09-05 15:45:03 +07:00
parent 314ab73ab5
commit 92989e649a
4 changed files with 51 additions and 48 deletions

View file

@ -404,10 +404,7 @@ int main (int argc, char * argv[])
{
//keys = i2p::data::PrivateKeys::CreateRandomKeys (options.signature);
//RAND_bytes( KeyBuf+MutateByte , 90 ); // FoundNonce is
for (unsigned i = options.threads-1;i--;)
delete [] KeyBufs[i];
delete [] KeyBufs;
DELKEYBUFS(options.threads);
std::cout << "(Generate a new keypair) Attempts #" << ++attempts << std::endl;
return 1;
}
@ -445,9 +442,7 @@ int main (int argc, char * argv[])
if (f)
{
f.write ((char *)KeyBuf, keys_len);
for (unsigned i = options.threads-1;i--;)
delete [] KeyBufs[i];
delete [] KeyBufs;
DELKEYBUFS(options.threads);
}
else
std::cout << "Can't create file " << options.outputpath << std::endl;