File 3842-Update-eunit.hrl.patch of Package erlang

From d3072e2cef67a97cc8fa9d92ff2d8fea7e6fc7a2 Mon Sep 17 00:00:00 2001
From: Wade Mealing <wmealing@gmail.com>
Date: Fri, 30 Jan 2026 22:22:47 +1000
Subject: [PATCH 2/3] Update eunit.hrl

---
 lib/eunit/include/eunit.hrl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/eunit/include/eunit.hrl b/lib/eunit/include/eunit.hrl
index 3733a104a0..b0652b77cb 100644
--- a/lib/eunit/include/eunit.hrl
+++ b/lib/eunit/include/eunit.hrl
@@ -246,7 +246,7 @@
             case rand:uniform() < (Prob) of
                 true ->
                     %% Convert seconds to milliseconds for timer:sleep
-                    Delay = (MinSec) +   () * ((MaxSec) - (MinSec)),
+                    Delay = (MinSec) + rand:uniform() * ((MaxSec) - (MinSec))
                     timer:sleep(round(Delay * 1000));
                 false ->
                     ok
-- 
2.51.0

openSUSE Build Service is sponsored by