diff --git a/benchmarks/src/adjacent_difference.cpp b/benchmarks/src/adjacent_difference.cpp index fdda4326059..b8ea76d8e2f 100644 --- a/benchmarks/src/adjacent_difference.cpp +++ b/benchmarks/src/adjacent_difference.cpp @@ -23,7 +23,7 @@ void bm(benchmark::State& state) { vector output(size); if constexpr (is_floating_point_v) { - normal_distribution dis(-100.0, 100.0); + normal_distribution dis(0, 100000.0); ranges::generate(input, [&] { return dis(gen); }); } else { static_assert(is_unsigned_v, "This avoids signed integers to avoid UB; they shouldn't perform differently"); diff --git a/benchmarks/src/minmax_element.cpp b/benchmarks/src/minmax_element.cpp index 7eb266e7736..e009610e4c3 100644 --- a/benchmarks/src/minmax_element.cpp +++ b/benchmarks/src/minmax_element.cpp @@ -28,7 +28,7 @@ void bm(benchmark::State& state) { mt19937 gen(84710); if constexpr (is_floating_point_v) { - normal_distribution dis(0, 10000.0); + normal_distribution dis(0, 100000.0); ranges::generate(a, [&] { return dis(gen); }); } else { uniform_int_distribution> dis(1, 20); diff --git a/tests/std/tests/VSO_0000000_vector_algorithms_floats/test.cpp b/tests/std/tests/VSO_0000000_vector_algorithms_floats/test.cpp index 89d03bfe513..a5540f29972 100644 --- a/tests/std/tests/VSO_0000000_vector_algorithms_floats/test.cpp +++ b/tests/std/tests/VSO_0000000_vector_algorithms_floats/test.cpp @@ -26,7 +26,7 @@ void test_min_max_element_floating_with_values(mt19937_64& gen, const vector& template void test_min_max_element_floating_any(mt19937_64& gen) { - normal_distribution dis(-100000.0, 100000.0); + normal_distribution dis(0, 100000.0); constexpr auto input_of_input_size = dataCount / 2; vector input_of_input(input_of_input_size);