SQC-15_online #1

Merged
memartel_loc merged 349 commits from SQC-15_online into master 2023-12-10 17:41:26 -05:00
Showing only changes of commit 397cf7f00d - Show all commits

View File

@ -99,7 +99,6 @@ int Server::Ready() {
return 1;
}
srand(time(NULL));
buildIdList(ID_LIST_SIZE);
Log("À l'écoute sur le port: " + std::to_string(SRV_PORT), false, false);
@ -240,6 +239,7 @@ void Server::Log(std::string str, bool is_error = false, bool is_fatal = false)
void Server::buildIdList(size_t size) {
std::set<uint64_t> lst;
srand(time(NULL));
do lst.insert(((uint64_t)rand() << 32 | rand())); // EIGHT SIX SEVENFIVE THREE AUGHT NIIIIIIiIIiiIiINE!
while (lst.size() < size);