The method of generation of the slideId (and the other Ids) seems to leave the possibility open (if unlikely in general practice) for inserted slides to have the same Id (especially if the pptx is modified on several different occasions). In my particular instance I am looking at how to generated unique Ids for added graphic frame (cNvPr) so I was browsing how it was done for slideIds...
The code seems to be in JaxbPmlPart ...