33 static std::string
generate(std::vector<std::string> arguments,
34 size_t world_pid = 0) {
36 std::string hash_input =
"";
38 for (
const std::string &
arg: arguments ) {
42 hash_input +=
"_" + std::to_string(world_pid);
44 std::hash<std::string> hashFunction;
45 size_t hash_value = hashFunction(hash_input);
47 std::ostringstream hash_str;
48 hash_str << std::hex << hash_value;
50 reverse(hash_input.begin(), hash_input.end());
51 hash_value = hashFunction(hash_input);
52 hash_str << hash_value;
54 return hash_str.str();
static std::string generate(std::vector< std::string > arguments, size_t world_pid=0)