diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2024-05-15 08:38:27 -0400 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2024-05-15 08:38:27 -0400 |
commit | 577d44970b25f46cacfa093c909a569e1bf53294 (patch) | |
tree | 4c512249bbca2b7476016b13b58783c91a251ba2 /random.h | |
parent | 7d174816febeed6977a7e90be5c80e9b99b11df9 (diff) |
un-fix threads; more refactoring
Diffstat (limited to 'random.h')
-rw-r--r-- | random.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ inline double randomN() { static std::uniform_real_distribution<double> distribution (0.0, 1.0); - static std::mt19937 generator; + static std::mt19937 generator (std::random_device{}()); return distribution(generator); } |