projects
/
flowspy
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Monkey patched User model. Poller js is templated. Plus minor changes
[flowspy]
/
utils
/
randomizer.py
diff --git a/utils/randomizer.py
b/utils/randomizer.py
new file mode 100644
(file)
index 0000000..
bfb0854
--- /dev/null
+++ b/
utils/randomizer.py
@@ -0,0
+1,5
@@
+import string
+import random
+
+def id_generator(size=6, chars=string.ascii_uppercase + string.digits):
+ return ''.join(random.choice(chars) for x in range(size))