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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user