From 345c7b764f0721e9bbc993a3cd7f803fd42cf943 Mon Sep 17 00:00:00 2001 From: open-license-manager <rillf@maildrop.cc> Date: 周一, 15 9月 2014 06:58:38 +0800 Subject: [PATCH] moving files for refactoring --- src/tools/bootstrap/bootstrap_linux.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bootstrap/bootstrap_linux.cpp b/src/tools/bootstrap/bootstrap_linux.cpp similarity index 99% rename from src/bootstrap/bootstrap_linux.cpp rename to src/tools/bootstrap/bootstrap_linux.cpp index 63069aa..8e42993 100644 --- a/src/bootstrap/bootstrap_linux.cpp +++ b/src/tools/bootstrap/bootstrap_linux.cpp @@ -2,7 +2,7 @@ * boostrap.c * * Created on: Apr 5, 2014 - * Author: devel + * */ #include <string> @@ -77,9 +77,9 @@ } void generatePk(std::string private_fname,string public_fname) { - RSA *rsa = RSA_generate_key(kBits, kExp, 0, 0); srand(time(NULL)); /* seed random number generator */ int random=rand(); + RSA *rsa = RSA_generate_key(kBits, kExp, 0, 0); /* To get the C-string PEM form: */ //BIO bio_private* = BIO_new_file(const char *filename, "w") -- Gitblit v1.9.1