From: Remi Gacogne Date: Mon, 14 Sep 2020 14:56:58 +0000 (+0200) Subject: dnsbulktest: Initialize the 'rng' and 'entropy-source' arguments X-Git-Tag: rec-4.5.0-alpha0~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9469%2Fhead;p=thirdparty%2Fpdns.git dnsbulktest: Initialize the 'rng' and 'entropy-source' arguments They are required to use dns_random(), which is used by our DNS packet generation code. --- diff --git a/pdns/dnsbulktest.cc b/pdns/dnsbulktest.cc index 5570728b91..206f3e073c 100644 --- a/pdns/dnsbulktest.cc +++ b/pdns/dnsbulktest.cc @@ -223,6 +223,9 @@ static void usage(po::options_description &desc) { int main(int argc, char** argv) try { + ::arg().set("rng", "Specify random number generator to use. Valid values are auto,sodium,openssl,getrandom,arc4random,urandom.")="auto"; + ::arg().set("entropy-source", "If set, read entropy from this file")="/dev/urandom"; + po::options_description desc("Allowed options"); desc.add_options() ("help,h", "produce help message")