nghttpx: Receive reference of std::mt19937, not making a copy

This commit is contained in:
Tatsuhiro Tsujikawa 2016-06-16 21:11:39 +09:00
parent cddb411495
commit 7e31340045
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ public:
void call_unblock_func();
private:
std::mt19937 gen_;
std::mt19937 &gen_;
// Called when blocking is started
std::function<void()> block_func_;
// Called when unblocked