chore: renamed utils to Utils

This commit is contained in:
Kieran Kihn
2025-11-16 11:32:08 +08:00
parent f28af1978d
commit f4f2691c04
3 changed files with 2 additions and 2 deletions

26
src/common/Utils.cpp Normal file
View File

@@ -0,0 +1,26 @@
/**
* @file utils.cpp
*
* @author Yuzhe Guo
* @date 2025.11.15
*/
#include "Utils.h"
namespace UNO::COMMON {
Random::Random() : rd_(), gen_(rd_()) {}
std::mt19937 &Random::getGenerator() {
return gen_;
}
Utils *Utils::getInstance() {
if (Utils::instance_ == nullptr) {
Utils::instance_ = new Utils();
}
return Utils::instance_;
}
Random &Utils::getRandom() {
return this->random_;
}
} // UNO