def generate_session_id(self):
        secret_key = self._config.secret_key
        while True:
            rand = os.urandom(16)
            now = time.time()
            session_id = sha1("%s%s%s%s" %(rand, now, self.handler.request.remote_ip, secret_key))
            session_id = session_id.hexdigest()
            if session_id not in self.store:
                break

        return session_id
Adapts Node to NodeCollection pub/sub interface
dataset/ETHPy150Open wecatch/app-turbo/turbo/session.py/SessionObject.generate_session_id--crossover with--dataset/ETHPy150Open selfsk/nodeset.core/src/nodeset/core/node.py/NodeCollection.adapt