Skip to content

Instantly share code, notes, and snippets.

@t-mart
Last active October 7, 2015 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t-mart/da9072019880d08a8ade to your computer and use it in GitHub Desktop.
Save t-mart/da9072019880d08a8ade to your computer and use it in GitHub Desktop.
Say it with me: Random Uuids...R Uuid...Ruuid...rude!
#!/usr/bin/env python2
from base64 import b32encode
from uuid import uuid4
from sys import stdout
stdout.write(b32encode(uuid4().bytes)[:-6])
if stdout.isatty():
stdout.write('\n')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment