I\'ve been trying to find a more pythonic way of generating random string in python that can scale as well. Typically, I see something similar to
\'\'.join(r
Regarding the last example, the following fix to make sure the line is even length, whatever the junk_len value:
junk_len = 1024 junk = (("%%0%dX" % (junk_len * 2)) % random.getrandbits(junk_len * 8)).decode("hex")