From 6d41ad025331afce9e495d7be3205730ddfa8f07 Mon Sep 17 00:00:00 2001 From: Fabian Topfstedt 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) --- lib/Crypto/Random/_UserFriendlyRNG.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Crypto/Random/_UserFriendlyRNG.py b/lib/Crypto/Random/_UserFriendlyRNG.py index 957e006..f389cfc 100644 --- a/lib/Crypto/Random/_UserFriendlyRNG.py +++ b/lib/Crypto/Random/_UserFriendlyRNG.py @@ -73,8 +73,8 @@ 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() + t = time.process_time() self._clock_es.feed(struct.pack("@I", int(2**30 * (t - floor(t))))) -- 2.27.0