Overwrite the original random number generator seed file.

After the random number generator seed file is read overwrite the
previous content of the file.
This commit is contained in:
Fedor Brunner 2014-04-04 13:11:25 +02:00
parent 74eff753d7
commit 46e9fc1f0a
1 changed files with 1 additions and 0 deletions

View File

@ -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")