Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: [Bug]? -iR <num_hosts> on windows XP generates duplicate targets
From: Fyodor <fyodor () insecure org>
Date: Wed, 23 Apr 2008 20:16:43 -0700

On Thu, Apr 24, 2008 at 01:54:45AM +0000, Brandon Enright wrote:

The solution to this is to drop the re-seeding code starting at line
184 of nbase/nbase_rng.cc (it is redundant and done in main.cc).

Good find.  While the srand() call in nbase_rnd.c shouldn't be
repeating, maybe the main.cc one is clobering it so soon afterward
that tv.tv_usec hasn't changed on Windows.  In other words, Windows
must not be good at updating tv.tv_usec .  Maybe we should just change
one of the srand calls to use a different seeding mechanism.

-F

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]
AlienVault