Exemplo n.º 1
0
 def create(cls, store):
     """
     Creates a session with a random indentifier.
     """
     sessionIdentifier = common._createIdentifier()
     return cls(store=store, identifier=sessionIdentifier)
Exemplo n.º 2
0
    def _createIdentifier(self, **kwargs):
        """Creates an identifier with a fake random number generator.

        """
        return common._createIdentifier(_urandom=_urandom, **kwargs)