For a while now we've had this issue open on Terra: PolyhedralDev/Terra#281
I have thought about this a lot, and am of the belief that there is really no good way of solving it, since all methods would come with huge caveats (mainly relating to what if additional samplers are added in a config pack update, that would completely change the look of the pack every time.)
I think that the best solution to this problem is to treat it similarly to Java's serialVersionUID, where it is expected that each instance is defined with a very large random number. This is the perfect job for a context menu action, it could also be set up to highlight a suggestion over a sampler and suggest autofilling a random salt value