about summary refs log tree commit diff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-10-05T19·29+0200
committerEelco Dolstra <edolstra@gmail.com>2016-10-05T19·29+0200
commitc6a929986aa25860cd93da9b7ab4488144934ead (patch)
tree5af86d9c9396d97f345f66dc4041ac72efc94dec /src/libstore
parent86e8c67efc33cf756500a1dec7fd6313658f2664 (diff)
Use std::random_device
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/download.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/download.cc b/src/libstore/download.cc
index 1cb7d4854a98..b228cd0b4b37 100644
--- a/src/libstore/download.cc
+++ b/src/libstore/download.cc
@@ -295,6 +295,7 @@ struct CurlDownloader : public Downloader
     std::thread workerThread;
 
     CurlDownloader()
+        : mt19937(rd())
     {
         static std::once_flag globalInit;
         std::call_once(globalInit, curl_global_init, CURL_GLOBAL_ALL);