Fix some more errant CATD warnings

Change-Id: I3adc9076dfcfcb5660d0413a897cf565bea27f95
diff --git a/internal/ceres/gradient_checker_test.cc b/internal/ceres/gradient_checker_test.cc
index 8d7d10f..1e6fe9a 100644
--- a/internal/ceres/gradient_checker_test.cc
+++ b/internal/ceres/gradient_checker_test.cc
@@ -61,7 +61,7 @@
   template <class UniformRandomFunctor>
   GoodTestTerm(int arity, int const* dim, UniformRandomFunctor&& randu)
       : arity_(arity), return_value_(true) {
-    std::uniform_real_distribution distribution(-1.0, 1.0);
+    std::uniform_real_distribution<double> distribution(-1.0, 1.0);
     // Make 'arity' random vectors.
     a_.resize(arity_);
     for (int j = 0; j < arity_; ++j) {
diff --git a/internal/ceres/sparse_linear_operator_benchmark.cc b/internal/ceres/sparse_linear_operator_benchmark.cc
index e2e22c9..f724a01 100644
--- a/internal/ceres/sparse_linear_operator_benchmark.cc
+++ b/internal/ceres/sparse_linear_operator_benchmark.cc
@@ -77,7 +77,8 @@
   bs->rows.resize(k * n);
   int values_offset = 0;
   std::mt19937 prng;
-  std::uniform_real_distribution uniform_0_m(0.0, static_cast<double>(m));
+  std::uniform_real_distribution<double> uniform_0_m(0.0,
+                                                     static_cast<double>(m));
   // Generate structure of the Jacobian.
   // For n cameras:
   for (int i = 0; i < n; ++i) {