-
-
Save underlost/17f91b58d5cba0bf57fd to your computer and use it in GitHub Desktop.
guid generator
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
guid_base = str(uuid.uuid4()) | |
guid_encoded = guid_base.encode('ascii', 'ignore') | |
guid = md5(guid_encoded).hexdigest()[:length] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment