title: Shorter version of UUID4
body: <p>I'm generating in python uuid4 strings.</p>
  
  <p>I use it to identify my service accounts, but one of my systems (GCP service accounts) has a 30 char limit, and it's too late to use something else :</p>
  
  <pre><code>Service account ID must be between 6 and 30 characters.
  Service account ID must start with a lower case letter, followed by one or more lower case alphanumerical characters that can be separated by hyphens.
  </code></pre>
  
  <p>How can I have a shorter version of the UUID with a limited conflict risk ?</p>
  
  <p>I've seen some base64 encoding hacks, but the shortest I can do is 22. Ideally, I would have something like git commit hash since the risk of conflict is limited.</p>