File use-time-process-time.patch of Package python-pycrypto

From 6d41ad025331afce9e495d7be3205730ddfa8f07 Mon Sep 17 00:00:00 2001
From: Fabian Topfstedt <topfstedt@schneevonmorgen.com>
Date: Mon, 18 Nov 2019 22:19:35 +0100
Subject: [PATCH] replaced time.clock with time.process_time (time clock was
 flagged as deprecated in Python 3.3 and got removed in Python 3.8)

diff --git a/lib/Crypto/Random/_UserFriendlyRNG.py b/lib/Crypto/Random/_UserFriendlyRNG.py
index 957e006..4cb2611 100644
--- a/lib/Crypto/Random/_UserFriendlyRNG.py
+++ b/lib/Crypto/Random/_UserFriendlyRNG.py
@@ -73,8 +73,11 @@ class _EntropyCollector(object):
         t = time.time()
         self._time_es.feed(struct.pack("@I", int(2**30 * (t - floor(t)))))
 
-        # Add the fractional part of time.clock()
-        t = time.clock()
+        # Add the fractional part of time.process_time()
+        try:
+            t = time.process_time()
+        except AttributeError:
+            t = time.clock()
         self._clock_es.feed(struct.pack("@I", int(2**30 * (t - floor(t)))))