Created
January 1, 2016 16:29
-
-
Save tpott/59522f409dae9ffae019 to your computer and use it in GitHub Desktop.
whats the diff
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 os | |
import base64 | |
def helper(): | |
while True: | |
s = os.urandom(16) | |
a = base64.b64encode(s) | |
b = base64.urlsafe_b64encode(s) | |
if a != b: | |
print (a, b) | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment