Created
May 16, 2012 16:02
-
-
Save magnusdahlstrand/2711640 to your computer and use it in GitHub Desktop.
Different implementations of a nonce generator
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
from random import random | |
from hashlib import md5 | |
generate_nonce = lambda: md5(str(random())).hexdigest() | |
# How to: | |
# 1. Call the generate_nonce function: | |
print generate_nonce() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment