Set a unique System Name

This commit is contained in:
Florin9doi 2024-04-14 22:46:43 +03:00 committed by Elad Ashkenazi
parent e48ec75896
commit e0d6f8a311
3 changed files with 10 additions and 0 deletions

View file

@ -10,3 +10,9 @@ bool cfg_root::node_core::enable_tsx_by_default()
{
return utils::has_rtm() && utils::has_mpx() && !utils::has_tsx_force_abort();
}
std::string cfg_root::node_sys::get_random_system_name()
{
std::srand(std::time(nullptr));
return "RPCS3-" + std::to_string(100 + std::rand() % 899);
}