SQC-15_online #1
| @@ -99,7 +99,6 @@ int Server::Ready() { | |||||||
| 		return 1; | 		return 1; | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	srand(time(NULL)); |  | ||||||
| 	buildIdList(ID_LIST_SIZE); | 	buildIdList(ID_LIST_SIZE); | ||||||
| 	 | 	 | ||||||
| 	Log("<EFBFBD> l'<27>coute sur le port: " + std::to_string(SRV_PORT), false, false); | 	Log("<EFBFBD> l'<27>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) { | void Server::buildIdList(size_t size) { | ||||||
| 	std::set<uint64_t> lst; | 	std::set<uint64_t> lst; | ||||||
|  |  | ||||||
|  | 	srand(time(NULL)); | ||||||
| 	do lst.insert(((uint64_t)rand() << 32 | rand())); // EIGHT SIX SEVENFIVE THREE AUGHT NIIIIIIiIIiiIiINE! | 	do lst.insert(((uint64_t)rand() << 32 | rand())); // EIGHT SIX SEVENFIVE THREE AUGHT NIIIIIIiIIiiIiINE! | ||||||
| 	while (lst.size() < size); | 	while (lst.size() < size); | ||||||
| 	 | 	 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user