[Python-bugs-list] [ python-Bugs-476054 ] small improvement to random

noreply@sourceforge.net noreply@sourceforge.net
Mon, 29 Oct 2001 09:07:42 -0800


Bugs item #476054, was opened at 2001-10-29 08:52
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=476054&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Tim Peters (tim_one)
Summary: small improvement to random

Initial Comment:
there is this code in the random module:

            # Initialize from current time
            import time
            a = long(time.time() * 256)

iwouldn't it be better to use multiply by 1000000 since
the microseconds are probably more random than the seconds?

  -- erno@iki.fi


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=476054&group_id=5470