os.environ, os.getcwd(), os.getpid()]
for s in sources:
OpenSSL.rand.add(str(s), 0.01)
OpenSSL.rand.add(str(s), 1)
# On Windows add the current contents of the screen to the PRNG state.
if os.name == 'nt':
from common import crypto
PYOPENSSL_PRNG_PRESENT = True
# Seed from file
OpenSSL.rand.load_file(RNG_SEED)
OpenSSL.rand.load_file(str(RNG_SEED))
crypto.add_entropy_sources_OpenSSL()
except ImportError:
log.info("PyOpenSSL PRNG not available")