mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
19f44f6648
commit
9b9d2bd85e
4 changed files with 12 additions and 13 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue