Last active
October 7, 2015 23:03
-
-
Save t-mart/da9072019880d08a8ade to your computer and use it in GitHub Desktop.
Say it with me: Random Uuids...R Uuid...Ruuid...rude!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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