Micah Cowan <[EMAIL PROTECTED]> writes:

> Yes, that appears to work quite well, as long as we seed it right;
> starting with a consistent X₀ would be just as bad as trying them
> sequentially, and choosing something that does not change several times
> a second (such as time()) still makes it likely that multiple
> invocations will choose the same first port. Probably, /dev/random as
> first choice, falling back to by gettimeofday() where that's available.
> I don't know what Windows would use.

Wget already contains high-resolution timer code for Windows; see
src/ptimer.c.

Reply via email to