diff options
author | Guido van Rossum <guido@python.org> | 1994-08-29 10:52:58 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-29 10:52:58 +0000 |
commit | 92ea6f84dcb5dd336e554e49f6c917e067a2033e (patch) | |
tree | 64107fd12f55c7dda531d2de8aeb9d2e9b9f01a6 /Lib/whrandom.py | |
parent | 038d9b75fa0ffe5cbd9b284684d488c5bc7f4f2c (diff) | |
download | cpython-92ea6f84dcb5dd336e554e49f6c917e067a2033e.tar.gz |
New way of generating .pyc files, thanks to Sjoerd.
urllib.py: '+' is not always safe (even though the RFC says so :-( )
whrandom.py: throw away top bits of time to avoid overflow on Mac
(where times can be negative)
Diffstat (limited to 'Lib/whrandom.py')
-rw-r--r-- | Lib/whrandom.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/whrandom.py b/Lib/whrandom.py index 670ca7a911..7317b443f8 100644 --- a/Lib/whrandom.py +++ b/Lib/whrandom.py @@ -39,7 +39,7 @@ class whrandom: if x is None: # Initialize from current time import time - t = int(time.time()) + t = int(time.time() % 0x80000000) t, x = divmod(t, 256) t, y = divmod(t, 256) t, z = divmod(t, 256) |