Re: uniqid

From: Date: Sun, 15 Dec 2002 11:07:14 +0000
Subject: Re: uniqid
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-92482@lists.php.net to get a copy of this message
Hi, marcus.boerger@t-online.de (Marcus Börger) wrote: > First: Uniqid test (tests/strings/001.phpt) failes for cygwin because > the time for gettimeofday() is only updated once per second. > I suggest we should change the test to use more entropy. > > Second: We should consider more entropy being default even though > it is slower. > I recognised this problem some time ago. We could use the alternative of gettimeofday() implemented in win32/time.c instead of the one that comes from the cygwin library. > Third: the function is available even when HAVE_GETTIMEOFDAY > is not available. This should be changed (is on out todo) or the function > should return a unique value for such platforms, too. If we have to make it independent of time functions in those platforms which lack the function, it matters how we can supply enough entropy to it. Do you have any idea for this? > Fourth: We should split ./tests/strings/001.phpt. One for the string > functions and one for uniqid(). +1 Moriyoshi > marcus > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.dev (#92482) next »