From 395ff97ecfc9c21013c8631b8fe7e7ef3849aac2 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Thu, 13 Nov 2014 23:57:16 +0800 Subject: [PATCH] Fix min mac problem --- Core/Config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 256d864e6f..10df16ea4e 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -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) {