Added make_key to utils
authorNishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 08:29:21 +0530
changeset 251 1773b48559e1
parent 250 f4d062fb5f05
child 252 5a92fcacdd5a
Added make_key to utils
utils.py
--- a/utils.py	Fri Jan 07 08:27:31 2011 +0530
+++ b/utils.py	Fri Jan 07 08:29:21 2011 +0530
@@ -0,0 +1,8 @@
+import string,random
+
+def make_key():
+    """ return a 10 character random key.
+    """
+    
+    return ''.join([ random.choice(string.uppercase+string.digits) for i in range(10)])
+