diff --git a/common/autoware_universe_utils/test/src/math/test_trigonometry.cpp b/common/autoware_universe_utils/test/src/math/test_trigonometry.cpp index 5c8f96ddee67f..e43db86f2bf89 100644 --- a/common/autoware_universe_utils/test/src/math/test_trigonometry.cpp +++ b/common/autoware_universe_utils/test/src/math/test_trigonometry.cpp @@ -61,8 +61,8 @@ float normalize_angle(double angle) TEST(trigonometry, opencv_fast_atan2) { - std::random_device rd; - std::mt19937 gen(rd()); + // Default initialization ensures a constant seed needed for reproducible tests + std::mt19937 gen{}; // Generate random x and y between -10.0 and 10.0 as float std::uniform_real_distribution dis(-10.0f, 10.0f);