]> granicus.if.org Git - pdns/commitdiff
ixfrdist: use urandom for dns_random init
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 16 May 2018 13:46:24 +0000 (15:46 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Wed, 16 May 2018 13:46:24 +0000 (15:46 +0200)
pdns/ixfrdist.cc

index 10e01fa883a5b6f5d15671c8ccbbe857bf85cae4..29830a6018a4ebf889e72a626e0aa751e56251a7 100644 (file)
@@ -1057,8 +1057,7 @@ int main(int argc, char** argv) {
   // Init the things we need
   reportAllTypes();
 
-  // TODO read from urandom (perhaps getrandom(2)?
-  dns_random_init("0123456789abcdef");
+  dns_random_init();
 
   std::thread ut(updateThread,
       config["work-dir"].as<string>(),