Verified Commit 2835322a authored by Marc Vef's avatar Marc Vef
Browse files

Review

parent d11575d6
Loading
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@
#include <common/rpc/distributor.hpp>
#include <common/common_defs.hpp>

#include <ctime>
#include <cstdlib>
#include <fstream>

#include <hermes.hpp>
@@ -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.");