summaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorNishanth Amuluru2011-01-07 08:29:21 +0530
committerNishanth Amuluru2011-01-07 08:29:21 +0530
commitf1554fcc9c723fd2d83f9fa9ab5ed663670ed4b4 (patch)
treecd2b0087f8e8b05160db6838c695d4ef2513ed8e /utils.py
parent5c9cf7b5557d63b19307642372402e8c5f6b62b6 (diff)
downloadpytask-f1554fcc9c723fd2d83f9fa9ab5ed663670ed4b4.tar.gz
pytask-f1554fcc9c723fd2d83f9fa9ab5ed663670ed4b4.tar.bz2
pytask-f1554fcc9c723fd2d83f9fa9ab5ed663670ed4b4.zip
Added make_key to utils
Diffstat (limited to 'utils.py')
-rw-r--r--utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils.py b/utils.py
index e69de29..a220264 100644
--- a/utils.py
+++ b/utils.py
@@ -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)])
+