From 7d44a91c16b7a50aca4ce22b0a39e9c9374813e2 Mon Sep 17 00:00:00 2001
From: JordanHanotiaux <103147288+JordanHanotiaux@users.noreply.github.com>
Date: Mon, 19 May 2025 10:23:44 +0200
Subject: [PATCH] Update main.cpp

---
 main.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/main.cpp b/main.cpp
index 5ca0056..f99efdf 100644
--- a/main.cpp
+++ b/main.cpp
@@ -72,11 +72,9 @@ cl_ulong getElapsedTime(const cl::Event& event) {
 }
 
 std::vector<float> fill_random(int rows, int cols) {
-    std::mt19937 gen(42);
-    std::uniform_real_distribution<float> dist(-1.0f, 1.0f);
-    std::vector<float> data(rows*cols);
-    for (int i = 0; i < rows * cols; ++i) {
-        data[i] = dist(gen);
+    std::vector<float> data(rows * cols);
+    for (auto& val : data) {
+        val = static_cast<float>(rand()) / RAND_MAX;
     }
     return data;
 }
-- 
GitLab