Created
April 8, 2011 18:42
-
-
Save lancelotj/910459 to your computer and use it in GitHub Desktop.
Create a short unique id within range of number, alphabet, - and _ from uuid
This file contains 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
import base64, uuid | |
base64.b64encode(uuid.uuid4().bytes, '_-')[:22] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment