Skip to content

Commit

Permalink
Merge pull request #18 from hildebra/multithread
Browse files Browse the repository at this point in the history
Multithread
  • Loading branch information
openpaul authored Jan 24, 2017
2 parents ba61855 + 4e55371 commit 8deacfb
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 158 deletions.
3 changes: 2 additions & 1 deletion rtk/IO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ cerr<<"fini";

void smplVec::shuffle_singl() {
//auto engine = std::default_random_engine{};
auto engine = std::mt19937_64{};
std::random_device rd;
auto engine = std::mt19937_64{rd()};
std::shuffle(std::begin(arr), std::end(arr), engine);
}

Expand Down
Loading

0 comments on commit 8deacfb

Please sign in to comment.