def get_machid():
 mac = b(('%012x' % uuid.getnode()))
 mac = re.findall('..', mac)
 mac += ['00', '00']
 from codecs import encode
 mac = ''.join([encode(h, 'hex_codec') for h in mac[::(-1)]])
 ids = np.flipud(np.fromstring(mac, np.int32, count=2))
 return ids

def get_machid ( ) : mac = b ( ( '%012x' % uuid . getnode ( ) ) ) mac = re . findall ( '..' , mac ) mac += [ '00' , '00' ] from codecs import encode mac = '' . join ( [ encode ( h , 'hex_codec' ) for h in mac [ : : ( - 1 ) ] ] ) ids = np . flipud ( np . fromstring ( mac , np . int32 , count = 2 ) ) return ids
get unique machine id .