summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Laramie Leavitt <lar@google.com>2023-05-10 14:01:54 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2023-05-10 14:04:27 -0700
commit67f9650c93a4fa04728a5b754ae8297d2c55d898 (patch)
tree33da6f8330c99f2f5e8ec55ff778115d537e49e7
parentb19ec98accca194511616f789c0a448c2b9d40e7 (diff)
YuleSimon/SkewedLow: Cleanup/move benchmarks and overload tests.
PiperOrigin-RevId: 530999471 Change-Id: Ifca68cd53be629088244eaa3560d43fd81090747
-rw-r--r--absl/random/benchmarks.cc2
-rw-r--r--absl/random/generators_test.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/absl/random/benchmarks.cc b/absl/random/benchmarks.cc
index 87bbb981..0900e818 100644
--- a/absl/random/benchmarks.cc
+++ b/absl/random/benchmarks.cc
@@ -62,7 +62,7 @@ class PrecompiledSeedSeq {
public:
using result_type = uint32_t;
- PrecompiledSeedSeq() {}
+ PrecompiledSeedSeq() = default;
template <typename Iterator>
PrecompiledSeedSeq(Iterator begin, Iterator end) {}
diff --git a/absl/random/generators_test.cc b/absl/random/generators_test.cc
index c3675674..20091309 100644
--- a/absl/random/generators_test.cc
+++ b/absl/random/generators_test.cc
@@ -117,6 +117,7 @@ void TestBernoulli(URBG* gen) {
absl::Bernoulli(*gen, 0.5);
}
+
template <typename URBG>
void TestZipf(URBG* gen) {
absl::Zipf<int>(*gen, 100);