blob: a82929ab7f723d7855b397ffd2aa0f45a1f9607b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/lib/Crypto/Random/_UserFriendlyRNG.py b/lib/Crypto/Random/_UserFriendlyRNG.py
index 957e006..34e2a31 100644
--- a/lib/Crypto/Random/_UserFriendlyRNG.py
+++ b/lib/Crypto/Random/_UserFriendlyRNG.py
@@ -74,7 +74,7 @@ class _EntropyCollector(object):
self._time_es.feed(struct.pack("@I", int(2**30 * (t - floor(t)))))
# Add the fractional part of time.clock()
- t = time.clock()
+ t = time.perf_counter()
self._clock_es.feed(struct.pack("@I", int(2**30 * (t - floor(t)))))
|