nghttpx: Receive reference of std::mt19937, not making a copy
This commit is contained in:
parent
cddb411495
commit
7e31340045
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue