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:
parent
74eff753d7
commit
46e9fc1f0a
|
@ -332,6 +332,7 @@ try:
|
||||||
except TypeError:
|
except TypeError:
|
||||||
OpenSSL.rand.load_file(RNG_SEED.encode('utf-8'))
|
OpenSSL.rand.load_file(RNG_SEED.encode('utf-8'))
|
||||||
crypto.add_entropy_sources_OpenSSL()
|
crypto.add_entropy_sources_OpenSSL()
|
||||||
|
OpenSSL.rand.write_file(str(RNG_SEED))
|
||||||
except ImportError:
|
except ImportError:
|
||||||
log.info("PyOpenSSL PRNG not available")
|
log.info("PyOpenSSL PRNG not available")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue