Code example for Random

Methods: nextBytes

0
        } 
      } catch (Exception e) {
        // ignore 
      } 
 
      Random rand = new Random();
      byte[] mac = new byte[8];
      rand.nextBytes(mac);
      mac[0] = 0x00;
      hwAddr = mac;
    } 
    return hwAddr;
  } 
}