public static String UUID ( long lo , long hi ) { long lo0 = ( lo >> 32 ) & 0xFFFFFFFF L ; long lo1 = ( lo >> 16 ) & 0xFFFF L ; long lo2 = ( lo >> 0 ) & 0xFFFF L ; long hi0 = ( hi >> 48 ) & 0xFFFF L ; long hi1 = ( hi >> 0 ) & 0xFFFFFFFFFFFF L ; return String . format ( "%08X-%04X-%04X-%04X-%012X" , lo0 , lo1 , lo2 , hi0 , hi1 ) ; }
About as clumsy and random as a blaster ...