From fe347262e9785a4706a92d981275eb08b8f9c103 Mon Sep 17 00:00:00 2001 From: TheLastRar Date: Wed, 26 Oct 2022 01:44:30 +0100 Subject: [PATCH] Fix: Using uint8_t in std::uniform_int_distribution is undefined Signed-off-by: TheLastRar --- tests/GZip_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/GZip_test.cpp b/tests/GZip_test.cpp index 1e762b2e..82503d81 100644 --- a/tests/GZip_test.cpp +++ b/tests/GZip_test.cpp @@ -24,7 +24,7 @@ slots: QByteArray compressed; QByteArray decompressed; std::default_random_engine eng((std::random_device())()); - std::uniform_int_distribution idis(0, std::numeric_limits::max()); + std::uniform_int_distribution idis(0, std::numeric_limits::max()); // initialize random buffer for(int i = 0; i < size; i++)