mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 11:59:03 +00:00
Standardize random string generation on stdnse.generate_random_string
This commit is contained in:
@@ -162,13 +162,7 @@ local function irc_compose_message(prefix, command, ...)
|
||||
end
|
||||
|
||||
local function random_nick()
|
||||
local nick = {}
|
||||
|
||||
for i = 1, 9 do
|
||||
nick[#nick + 1] = string.char(math.random(string.byte("a"), string.byte("z")))
|
||||
end
|
||||
|
||||
return table.concat(nick)
|
||||
return stdnse.generate_random_string(9, "abcdefghijklmnopqrstuvwxyz")
|
||||
end
|
||||
|
||||
local function splitlines(s)
|
||||
|
||||
Reference in New Issue
Block a user