By default all objects in the DM repository get assigned two (2) unique ids: a GUID and a DBID. The GUID is the "safe" unique identifier to use, since they're immutable (are guaranteed to retain their value across export/import etc.), whereas DBIDs are simply database sequence / identify column values and hence change as assets are moved around between Alfresco instances.
I'm not sure which "unique ID" you're referring to - neither GUIDs nor dbids have the format shown above, which makes me suspect that they're defined in an aspect of some kind (perhaps an aspect defined in the Records Management module), in which case the generation of the unique value is part of the aspect, not Alfresco itself.
Cheers,
Peter