We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4ae13e commit 66d898bCopy full SHA for 66d898b
lib/ccdoc/utils.py
@@ -1,3 +1,5 @@
1
+import random
2
+import string
3
import os
4
5
from django.conf import settings
@@ -73,3 +75,7 @@ def register_fonts():
73
75
italic='FreeSerif' + ('' if is_eth else 'Italic'), \
74
76
boldItalic='FreeSerif' + ('' if is_eth else 'BoldItalic'))
77
78
+
79
+def str_generator(size=6, chars=string.ascii_uppercase + string.digits):
80
+ """Generates random strings"""
81
+ return ''.join(random.choice(chars) for x in range(size))
0 commit comments