From 1a0f74193e0953fd57049c18b0d93161d6775d5a Mon Sep 17 00:00:00 2001 From: Erwan MATHIEU Date: Fri, 18 Oct 2024 14:23:56 +0200 Subject: [PATCH] Fix build with old compilers CURA-12164 --- include/utils/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/utils/math.h b/include/utils/math.h index 95306cf9b9..a0650f0e8f 100644 --- a/include/utils/math.h +++ b/include/utils/math.h @@ -130,7 +130,7 @@ template /*! * \brief Get a random floating point number in the range [0.0, 1.0] */ -template +template [[nodiscard]] inline T randf() { return static_cast(std::rand()) / static_cast(RAND_MAX);