Changes between Initial Version and Version 1 of Ticket #58835, comment 1


Ignore:
Timestamp:
Aug 14, 2019, 8:03:07 AM (5 years ago)
Author:
vm4866571246066832v
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58835, comment 1

    initial v1  
     1You have to move the line PYOPENSSL_PRNG_PRESENT = True down as well:
     2{{{
     3try:
     4    import OpenSSL.rand
     5    from common import crypto
     6    # Seed from file
     7    OpenSSL.rand.load_file(str(RNG_SEED))
     8    crypto.add_entropy_sources_OpenSSL()
     9    OpenSSL.rand.write_file(str(RNG_SEED))
     10    PYOPENSSL_PRNG_PRESENT = True
     11except ImportError:
     12    log.info("PyOpenSSL PRNG not available")
     13except AttributeError:
     14    log.info("PyOpenSSL PRNG not available")
     15}}}