def rand_infiniband_guid_address():
 guid = []
 for i in range(8):
  guid.append(('%02x' % random.randint(0, 255)))
 return ':'.join(guid)

def rand_infiniband_guid_address ( ) : guid = [ ] for i in range ( 8 ) : guid . append ( ( '%02x' % random . randint ( 0 , 255 ) ) ) return ':' . join ( guid )
generate an infiniband guid address :return: an random infiniband guid address :rtype: string .