httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Rushton <mrusht...@yahoo.com>
Subject random number generation
Date Wed, 04 Feb 2009 22:06:32 GMT
Hi,
  I'm writing an apache module and need to generate a random number to handle a request.
The random numbers must be unique across requests and thus across forks. My problem is coming
up with a way to seed the random numbers in an efficient way. I imagine I'll need to use some
combination of a timestamp and process/thread id. Perhaps this is already handled by apache
or another module? What have other people done? That's it. Thanks in advance.
-Matt  



      
Mime
View raw message