groupon/locality-uuid.java — pull request #3 by zippy1981 (2013-09-11 00:22:19+00:00)
Title: Make sure the network interface we grab has a 6 byte hardware address.

On Windows (at least my Windows 7 Enterprise laptop) the first interface returned by NetworkInterface.getNetworkInterfaces().neextElement() is the loopback interface which has no mac address. Therefore, I added a little bit or robustness to the function that got the first mac address. Since its only called once it should not be a performance issue.

I ran the unit tests on windows and ubuntu 13.04.