Generating a single, globally unique ID (One that's XML-compliant and not too long)
I wanted to be able to assign a unique ID to something with one or two keystrokes in Emacs. I came up with something that works, although I’m sure there are ways to make it work better.