mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Get entropy from platform's native source.
This commit is contained in:
15
src/main.cpp
15
src/main.cpp
@@ -1,9 +1,13 @@
|
||||
|
||||
#include "Application.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "CallRPC.h"
|
||||
#include "Config.h"
|
||||
|
||||
extern void runTests();
|
||||
extern bool AddSystemEntropy();
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
@@ -50,9 +54,16 @@ int parseCommandline(int argc, char* argv[])
|
||||
|
||||
theConfig.load();
|
||||
|
||||
if (!AddSystemEntropy())
|
||||
{
|
||||
#ifdef DEBUG
|
||||
std::cerr << "Unable to add system entropy" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
if(argc>1)
|
||||
{
|
||||
ret=commandLineRPC(argc, argv);
|
||||
ret = commandLineRPC(argc, argv);
|
||||
if(ret)
|
||||
printHelp();
|
||||
}
|
||||
@@ -66,6 +77,6 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
// runTests();
|
||||
|
||||
return(parseCommandline(argc,argv));
|
||||
return(parseCommandline(argc, argv));
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user