@classmethod
    def generate(cls):
        return cls(random(PrivateKey.SIZE), encoder=encoding.RawEncoder)
Return a context manager that captures all logged messages.
dataset/ETHPy150Open OpenBazaar/OpenBazaar-Installer/windows/PyNaCl-0.3.0-py2.7-win-amd64.egg/nacl/public.py/PrivateKey.generate--crossover with--dataset/ETHPy150Open Kozea/WeasyPrint/weasyprint/tests/testing_utils.py/capture_logs