

def gen_cjk(length=10):
    'Returns a random string made up of CJK characters.\n    (Source: Wikipedia - CJK Unified Ideographs)\n\n    :param int length: Length for random data.\n    :returns: A random string made up of CJK characters.\n    :rtype: str\n\n    '
    _is_positive_int(length)
    random.seed()
    codepoints = [random.randint(19968, 40908) for _ in range(length)]
    if (sys.version_info[0] == 2):
        output = ''.join((unichr(codepoint) for codepoint in codepoints))
    else:
        output = ''.join((chr(codepoint) for codepoint in codepoints))
    return _make_unicode(output)

dataset/ETHPy150Open omaciel/fauxfactory/fauxfactory/__init__.py gen_cjk/original