Re: [exim] Random number generation in an ACL

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Johannes Berg
Ημερομηνία:  
Προς: Chris Lightfoot
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Random number generation in an ACL
On Thu, 2006-07-06 at 19:05 +0100, Chris Lightfoot wrote:

> I don't think that would be a good idea for Ian's
> application, since it would mean that his cleanup query
> could be multiple times in a given second if there were
> several incoming connections then


> +        srand(time(NULL));
> +        seeded = 1;


You can have the same thing, since the new connection will be in a new
process. Or not?

johannes