New router and simplifiedrest handler

This commit is contained in:
stephb9959
2021-06-28 23:45:25 -07:00
parent 89f423b605
commit d15a1a3cc4
32 changed files with 772 additions and 273 deletions

View File

@@ -360,12 +360,13 @@ namespace uCentral::Utils {
}
}
uint64_t InitializeSystemId() {
uint64_t R = ~ std::rand();
auto S = GetDefaultMacAsInt64() ^ R;
SaveSystemId(S);
return S;
}
uint64_t InitializeSystemId() {
std::srand(std::time(nullptr));
auto S = GetDefaultMacAsInt64() ^ std::rand();
SaveSystemId(S);
std::cout << "ID: " << S << std::endl;
return S;
}
uint64_t GetSystemId() {
uint64_t ID=0;