From 46e9fc1f0ae1fc89b4fedaa9d878ee0f541c128e Mon Sep 17 00:00:00 2001 From: Fedor Brunner Date: Fri, 4 Apr 2014 13:11:25 +0200 Subject: [PATCH] Overwrite the original random number generator seed file. After the random number generator seed file is read overwrite the previous content of the file. --- src/gajim.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gajim.py b/src/gajim.py index d268427e1..f625ad2e0 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -332,6 +332,7 @@ try: except TypeError: OpenSSL.rand.load_file(RNG_SEED.encode('utf-8')) crypto.add_entropy_sources_OpenSSL() + OpenSSL.rand.write_file(str(RNG_SEED)) except ImportError: log.info("PyOpenSSL PRNG not available")