docs: def randomString(length, chrs=None):
      """Produce a string of length random bytes, chosen from chrs."""
      if chrs is None:
          return getBytes(length)
      else:
          n = len(chrs)
          return ''.join([chrs[randrange(n)] for _ in xrange(length)])