fork download
  1. #include <random>
  2.  
  3. std::default_random_engine master { std::random_device {}() };
  4.  
  5. namespace this_thread {
  6. thread_local std::default_random_engine rng { master() };
  7. }
  8.  
  9.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:6:5: error: 'thread_local' does not name a type
stdout
Standard output is empty