Skip to content
Snippets Groups Projects
Verified Commit 4b93e6b1 authored by Petr Špaček's avatar Petr Špaček
Browse files

limit-clients: fix getopt for seed

Options without short variant should use nil. It would blow up if two
options used empty string for short name.
parent 8abf3417
No related branches found
No related tags found
1 merge request!34Random seed improvements
......@@ -19,7 +19,7 @@ local getopt = require("dnsjit.lib.getopt").new({
{ "r", "read", "", "input file to read", "?" },
{ "w", "write", "", "output file to write", "?" },
{ "l", "limit", 1.0, "chance for each client to appear, 0 to 1", "?" },
{ "", "seed", 0, "seed for RNG", "?" },
{ nil, "seed", 0, "seed for RNG", "?" },
})
local SNAPLEN = 66000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment