Commit 2a16a5b9 authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

libnicbm: fix mac address generation

parent c3e266e1
......@@ -275,7 +275,7 @@ Runner::Runner(Device &dev_)
mac_addr = lrand48();
mac_addr <<= 16;
mac_addr ^= lrand48();
mac_addr &= ~(3ULL << 40);
mac_addr &= ~3ULL;
std::cerr << std::hex << mac_addr << std::endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment