randomize MACs

This commit is contained in:
Robert 2023-07-01 14:39:27 +02:00
parent c295b13018
commit dc966782b5
3 changed files with 16 additions and 4 deletions

View file

@ -7,8 +7,9 @@ Device::Device(const std::string& macAddress) {
parseAndSetMac(macAddress);
}
std::shared_ptr<Device> Device::create(const std::string& macAddress) {
return std::make_shared<Device>(macAddress);
Device::Device(uint8_t a, uint8_t b, uint8_t c, uint8_t d, uint8_t e, uint8_t f) :
macAddress{a, b, c, d, e, f}
{
}
void Device::parseAndSetMac(const std::string& mac) {