Skip to content

Commit

Permalink
replaced time.clock with time.process_time (time clock was flagged as…
Browse files Browse the repository at this point in the history
… deprecated in Python 3.3 and got removed in Python 3.8)
  • Loading branch information
fabiant7t committed Nov 18, 2019
1 parent 7acba5f commit 6d41ad0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Crypto/Random/_UserFriendlyRNG.py
Expand Up @@ -73,8 +73,8 @@ def collect(self):
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)))))


Expand Down

0 comments on commit 6d41ad0

Please sign in to comment.