mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralsec.git
synced 2025-11-02 19:57:46 +00:00
New router and simplifiedrest handler
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user