seems to answer that sprintf %x will return the same string on all machines
Yes.
In reply to Re^9: sprintf %X endianness by BrowserUk in thread sprintf %X endianness by Anonymous Monk