Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 503190
Collapse All | Expand All

(-)a/common/crypto.py (-1 / +1 lines)
Lines 87-93 def add_entropy_sources_OpenSSL(): Link Here
87
        os.environ, os.getcwd(), os.getpid()]
87
        os.environ, os.getcwd(), os.getpid()]
88
88
89
    for s in sources:
89
    for s in sources:
90
        OpenSSL.rand.add(str(s), 0.01)
90
        OpenSSL.rand.add(str(s), 1)
91
91
92
    # On Windows add the current contents of the screen to the PRNG state.
92
    # On Windows add the current contents of the screen to the PRNG state.
93
    if os.name == 'nt':
93
    if os.name == 'nt':
(-)a/gajim.py (-1 / +1 lines)
Lines 301-307 try: Link Here
301
    from common import crypto
301
    from common import crypto
302
    PYOPENSSL_PRNG_PRESENT = True
302
    PYOPENSSL_PRNG_PRESENT = True
303
    # Seed from file
303
    # Seed from file
304
    OpenSSL.rand.load_file(RNG_SEED)
304
    OpenSSL.rand.load_file(str(RNG_SEED))
305
    crypto.add_entropy_sources_OpenSSL()
305
    crypto.add_entropy_sources_OpenSSL()
306
except ImportError:
306
except ImportError:
307
    log.info("PyOpenSSL PRNG not available")
307
    log.info("PyOpenSSL PRNG not available")

Return to bug 503190