about summary refs log tree commit diff
path: root/absl/random/gaussian_distribution_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'absl/random/gaussian_distribution_test.cc')
-rw-r--r--absl/random/gaussian_distribution_test.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/absl/random/gaussian_distribution_test.cc b/absl/random/gaussian_distribution_test.cc
index 398f0131b5dd..02ac578a5c18 100644
--- a/absl/random/gaussian_distribution_test.cc
+++ b/absl/random/gaussian_distribution_test.cc
@@ -216,7 +216,10 @@ class GaussianDistributionTests : public testing::TestWithParam<Param>,
   template <typename D>
   double SingleChiSquaredTest();
 
-  absl::InsecureBitGen rng_;
+  // We use a fixed bit generator for distribution accuracy tests.  This allows
+  // these tests to be deterministic, while still testing the qualify of the
+  // implementation.
+  absl::random_internal::pcg64_2018_engine rng_{0x2B7E151628AED2A6};
 };
 
 template <typename D>