Loading src/client/preload.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -37,6 +37,8 @@ #include <common/rpc/distributor.hpp> #include <common/common_defs.hpp> #include <ctime> #include <cstdlib> #include <fstream> #include <hermes.hpp> Loading Loading @@ -238,8 +240,10 @@ init_environment() { EXIT_FAILURE, "Unable to fetch file system configurations from daemon process through RPC."); } // Initialize random number generator and seed for replica selection // in case of failure, a new replica will be selected if(CTX->get_replicas() > 0) { srand(time(NULL)); srand(time(nullptr)); } LOG(INFO, "Environment initialization successful."); Loading Loading
src/client/preload.cpp +5 −1 Original line number Diff line number Diff line Loading @@ -37,6 +37,8 @@ #include <common/rpc/distributor.hpp> #include <common/common_defs.hpp> #include <ctime> #include <cstdlib> #include <fstream> #include <hermes.hpp> Loading Loading @@ -238,8 +240,10 @@ init_environment() { EXIT_FAILURE, "Unable to fetch file system configurations from daemon process through RPC."); } // Initialize random number generator and seed for replica selection // in case of failure, a new replica will be selected if(CTX->get_replicas() > 0) { srand(time(NULL)); srand(time(nullptr)); } LOG(INFO, "Environment initialization successful."); Loading