Skip to content

Commit

Permalink
Fix build with old compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Oct 18, 2024
1 parent 68b7f52 commit 1a0f741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/utils/math.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ template<utils::numeric T>
/*!
* \brief Get a random floating point number in the range [0.0, 1.0]
*/
template<std::floating_point T>
template<utils::floating_point T>
[[nodiscard]] inline T randf()
{
return static_cast<T>(std::rand()) / static_cast<T>(RAND_MAX);
Expand Down

0 comments on commit 1a0f741

Please sign in to comment.