The GUID / UUID should be at least 32 characters and should stay in the ASCIWE range to avoid trouble when passing them around.
This one-liner(ish) solution is the most compact we could come up with.:
(Algorithms for Creating a UUID from Truly Random or Pseudo-Random Number).