File avoid-fips-sha1-error.patch of Package python-dnspython

Index: dnspython-2.7.0/dns/entropy.py
===================================================================
--- dnspython-2.7.0/dns/entropy.py
+++ dnspython-2.7.0/dns/entropy.py
@@ -34,7 +34,7 @@ class EntropyPool:
         self.digest: Optional[bytearray] = None
         self.next_byte = 0
         self.lock = threading.Lock()
-        self.hash = hashlib.sha1()
+        self.hash = hashlib.sha256()
         self.hash_len = 20
         self.pool = bytearray(b"\0" * self.hash_len)
         if seed is not None:
openSUSE Build Service is sponsored by