utils.py
changeset 13 1773b48559e1
parent 12 f4d062fb5f05
child 15 beb830b0e744
--- 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)])
+