httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@ebuilt.com>
Subject Re: cvs commit: httpd-test/flood/examples round-robin-example.xml
Date Thu, 02 Aug 2001 23:21:31 GMT
On Thu, Aug 02, 2001 at 04:10:26PM -0700, Roy Fielding wrote:
> >   Added pre/post delays, as well as a precision amount for each.
> >   All times are in seconds. The actual delays is calculated as:
> >      actual_delay + (precision * e)
> >   (where e is a number in [-1,1]). I'm using rand() to generate
> >   the 'e' factor, and as this is not threadsafe on some
> >   platforms (I don't really care what the number is, so this
> >   is NBD), I really should change this later to be
> >   something akin to apr_generate_random_bytes().
> 
> We should have a pseudo-random number generator based on a seed value
> so that the same test can be repeated.  Is that how this works?

I can add this functionality, but we really should move away from
the libc rand()/seed() and to something portable, like maybe APR
for this. I'll also look into adding something to APR.

-aaron


Mime
View raw message