mirror of
https://github.com/nmap/nmap.git
synced 2026-08-28 12:31:12 +00:00
Make Lua's random more random
This commit is contained in:
parent
b426f0d719
commit
6aaada8c53
1 changed files with 3 additions and 0 deletions
|
|
@ -975,6 +975,9 @@ local function run (threads_iter)
|
|||
|
||||
local progress = cnse.scan_progress_meter(NAME);
|
||||
|
||||
-- Use stronger random seed
|
||||
math.randomseed(("jj"):unpack(nmap.get_random_bytes(("jj"):packsize())))
|
||||
|
||||
-- Loop while any thread is running or waiting.
|
||||
while next(running) or next(waiting) or threads_iter do
|
||||
-- Start as many new threads as possible.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue