aboutsummaryrefslogtreecommitdiffstats
path: root/random.h
diff options
context:
space:
mode:
authorClyne Sullivan <clyne@bitgloo.com>2024-05-15 08:38:27 -0400
committerClyne Sullivan <clyne@bitgloo.com>2024-05-15 08:38:27 -0400
commit577d44970b25f46cacfa093c909a569e1bf53294 (patch)
tree4c512249bbca2b7476016b13b58783c91a251ba2 /random.h
parent7d174816febeed6977a7e90be5c80e9b99b11df9 (diff)
un-fix threads; more refactoring
Diffstat (limited to 'random.h')
-rw-r--r--random.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/random.h b/random.h
index fb0c7b3..ec60209 100644
--- a/random.h
+++ b/random.h
@@ -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);
}