| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
First, the RNG in whrandom.py sucks if you let it seed itself from the time.
The problem is the line:
t = int((t&0xffffff) | (t>>24))
Since it ORs the two parts together, the resulting value has mostly
ON bits. Change | to ^, and you don't lose any randomness.
|
|
|
|
|
| |
know Python integers are at least 32 bits long; and avoid zeros in
initial seed value.
|
|
|
|
| |
pass invalid seed values.
|
|
|
|
| |
fold in the higest 8 bits of the time as well.
|
|
|
|
| |
time; default seed's arguments to (0,0,0)
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
|
|
| |
constructors. There is no backward compatibility. Not everything has
been tested.
* aiff.{py,doc}: deleted in favor of aifc.py (which contains its docs as
comments)
|
|
|
|
|
|
| |
* Fixed calendar.py, mimetools.py, whrandom.py to cope with time.time()
returning a floating point number. (And fix old bug in calendar)
* Add recursion level to mainloop.mainloop(), to make it reentrant.
|
|
|
|
| |
is moved to the sgi subdirectory.
|
|
|