mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 18:25:57 +01:00
c++ parallel sort algorithm example
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
int main(int argc, char **argv) {
|
||||
// Potentially expensive /dev/urandom read that waits for entropy.
|
||||
std::random_device dev;
|
||||
std::mt19937 prng(dev());
|
||||
auto seed = dev();
|
||||
std::mt19937 prng(seed);
|
||||
std::uniform_int_distribution<uint64_t> zero_ull_max(0);
|
||||
std::uniform_int_distribution<uint8_t> one_to_six(1, 6);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user