#include <iostream>
#include <string>
#include <functional>
int MakeRandIntByStr(const std::string& str) {
int rand_seed = std::hash<std::string>{}(str);
srand(rand_seed);
return rand();
}
int main() {
std::string str = " aa bbb cc dd eeef ";
std::cout << MakeRandIntByStr(str) << std::endl;
return 0;
}