Fix 0A to 0F

This commit is contained in:
sum2012 2014-11-13 22:57:57 +08:00
parent 05b293c632
commit 486c32b91b

View File

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