Created
April 18, 2017 09:02
-
-
Save deque-blog/d4511b7f78660a6d6ab69a1393a2c717 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline auto char_gen() | |
{ | |
return [=](std::mt19937& bit_gen) -> char | |
{ | |
std::uniform_int_distribution<int> distribution{ | |
std::numeric_limits<char>::min(), std::numeric_limits<char>::max()}; | |
return distribution(bit_gen); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment