dddp/__init__.py
def meteor_random_id(name=None, length=17):
    """Generate a new ID, optionally using namespace of given `name`."""
    if name is None:
        stream = THREAD_LOCAL.alea_random
    else:
        stream = THREAD_LOCAL.random_streams[name]
    return stream.random_string(length, METEOR_ID_CHARS)
def meteor_random_id(name=None, length=17):
    if name is None:
        stream = THREAD_LOCAL.alea_random
    else:
        stream = THREAD_LOCAL.random_streams[name]
    return stream.random_string(length, METEOR_ID_CHARS)
def meteor_random_id ( name = None , length = 17 ) : if name is None : stream = THREAD_LOCAL . alea_random else : stream = THREAD_LOCAL . random_streams [ name ] return stream . random_string ( length , METEOR_ID_CHARS )
Generate a new ID, optionally using namespace of given `name`.
Generate a new ID optionally using namespace of given name .