No need bracket

This commit is contained in:
sum2012 2014-11-13 22:20:29 +08:00
parent 122c3b866e
commit 05b293c632

View file

@ -243,9 +243,8 @@ 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 <= 9)
randStream << '0' << value;
}
else
randStream << std::hex << value;
if (i<5) {