Welcome, guest | Sign In | My Account | Store | Cart
import uuid
print ':'.join(['{:02x}'.format((uuid.getnode() >> i) & 0xff) for i in range(0,8*6,8)][::-1])

Diff to Previous Revision

--- revision 1 2012-10-01 17:15:48
+++ revision 2 2012-10-01 17:16:27
@@ -1,1 +1,2 @@
-import uuid; print ':'.join(['{:02x}'.format((uuid.getnode() >> i) & 0xff) for i in range(0,8*6,8)][::-1])
+import uuid
+print ':'.join(['{:02x}'.format((uuid.getnode() >> i) & 0xff) for i in range(0,8*6,8)][::-1])

History