A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-June/015471.html below:

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib/test test_mailbox.py,1.5,1.6

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib/test test_mailbox.py,1.5,1.6 [Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib/test test_mailbox.py,1.5,1.6Thomas Wouters thomas@xs4all.net
Tue, 19 Jun 2001 23:04:46 +0200
On Tue, Jun 19, 2001 at 01:20:07PM -0700, Jack Jansen wrote:

> The test used int(time.time()) to get a random number, but this doesn't
> work on the mac (where times are bigger than ints). Changed to
> int(time.time()%1000000).

Doesn't int(time.time()%sys.maxint) make more sense ? At least you won't be
degrading the sequentiality of this particularly unrandom random number on
platforms where ints really are big enough to hold times :)

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4