1er commit

This commit is contained in:
2021-08-21 10:14:47 +02:00
commit a99ecf7c2d
99 changed files with 66605 additions and 0 deletions

17
src/misc/Random.cpp Normal file
View File

@@ -0,0 +1,17 @@
#include "misc/Random.h"
#include <random>
#include <ctime>
namespace td {
namespace utils {
void initRandomizer(){
srand(time(0));
}
std::uint64_t getRandomNumber(std::size_t max){
return rand() % max;
}
} // namespace utils
} // namespace td