Fix min mac problem

This commit is contained in:
sum2012 2014-11-13 23:57:16 +08:00
parent feb23d717d
commit 395ff97ecf

View File

@ -244,7 +244,7 @@ const char *CreateRandMAC() {
for(int i = 0; i < 6; i++) {
value = rand() % 256;
if (value >= 0 && value <= 15)
randStream << '0' << value;
randStream << '0' << std::hex << value;
else
randStream << std::hex << value;
if (i<5) {