1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-23 16:09:02 +00:00

Updated all the stray calls to rand() to use nbase_rnd instead. The

only code left in Nmap that still uses rand() is in the Lua math 
library.  Perhaps at some point we'll need to expose high-quality random 
numbers to Lua via our custom nmap library.
This commit is contained in:
bmenrigh
2008-05-06 01:05:51 +00:00
parent 19f44f6648
commit 9b9d2bd85e
4 changed files with 12 additions and 13 deletions

View File

@@ -2718,7 +2718,7 @@ static UltraProbe *sendIPScanProbe(UltraScanInfo *USI, HostScanStats *hss,
seq = seq32_encode(USI, tryno, pingseq);
if (pspec->pd.tcp.flags & TH_ACK)
ack = rand();
ack = get_random_u32();
if (pspec->pd.tcp.flags & TH_SYN) {
tcpops = (u8 *) "\x02\x04\x05\xb4";