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
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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")
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue