Drop use of the deprecated time.clock which was removed in Python 3.8. Adapted from upstream pull request: https://github.com/dlitz/pycrypto/pull/296 diff --git a/lib/Crypto/Random/_UserFriendlyRNG.py b/lib/Crypto/Random/_UserFriendlyRNG.py --- 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))))) ts'>koszko-scripts Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/smalltalk.scm
AgeCommit message (Expand)Author
2024-09-14gnu: smalltalk: Disable tests on x86-64....* gnu/packages/smalltalk.scm (smalltalk)[arguments]: Disable tests on x86-64. Change-Id: I6838e94545df4c11f048b06dfbfd99358bf240a3 Guillaume Le Vaillant
2024-09-13gnu: smalltalk: Fix tests....* gnu/packages/smalltalk.scm (smalltalk)[native-inputs]: Add '(libc-utf8-locales-for-target)'. Change-Id: Idf49394e5c4dbd3398a6774319184339ed18585c Signed-off-by: Guillaume Le Vaillant <glv@posteo.net> Greg Hogan