How are GUIDs in SCOM and SCSM calculated?

Quite some time ago I discussed with Raphael Burri how GUIDs for SCOM elements are getting calculated. To be honest even with Raphael's great explanation I did not fully understand this topic. Today I read a post from Anton Gritsenko by accident, talking about GUIDs in SCSM and I thought this is the right time…