reg/utils.py
changeset 2 c11afa8623f7
child 6 057498d12450
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/reg/utils.py	Thu Apr 08 22:28:15 2010 +0530
@@ -0,0 +1,6 @@
+import string
+import random
+
+def gen_key():
+    allowed_chars = string.digits+string.uppercase
+    return ''.join([random.choice(allowed_chars) for i in range(10)])