Use std::random_device
This commit is contained in:
		
							parent
							
								
									86e8c67efc
								
							
						
					
					
						commit
						c6a929986a
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -295,6 +295,7 @@ struct CurlDownloader : public Downloader
 | 
				
			||||||
    std::thread workerThread;
 | 
					    std::thread workerThread;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    CurlDownloader()
 | 
					    CurlDownloader()
 | 
				
			||||||
 | 
					        : mt19937(rd())
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        static std::once_flag globalInit;
 | 
					        static std::once_flag globalInit;
 | 
				
			||||||
        std::call_once(globalInit, curl_global_init, CURL_GLOBAL_ALL);
 | 
					        std::call_once(globalInit, curl_global_init, CURL_GLOBAL_ALL);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue