File 3141-Update-after-feedback.patch of Package erlang

From 62c2a75624d116a85d4538f53de977b5fcd0decc Mon Sep 17 00:00:00 2001
From: Raimo Niskanen <raimo@erlang.org>
Date: Tue, 25 Nov 2025 10:39:43 +0100
Subject: [PATCH 1/2] Update after feedback

---
 lib/stdlib/src/rand.erl | 37 ++++++++++++++++++++-----------------
 1 file changed, 20 insertions(+), 17 deletions(-)

diff --git a/lib/stdlib/src/rand.erl b/lib/stdlib/src/rand.erl
index c0e5157656..aea61daeb9 100644
--- a/lib/stdlib/src/rand.erl
+++ b/lib/stdlib/src/rand.erl
@@ -338,11 +338,15 @@ The current _default algorithm_ is
 [`exsss` (Xorshift116\*\*)](#algorithms). If a specific algorithm is
 required, ensure to always use `seed/1` to initialize the state.
 
-Which algorithm that is the default may change between Erlang/OTP releases,
-and is selected to be one with high speed, small state and "good enough"
-statistical properties.  So to ensure that the same sequence is reproduced
-on a later Erlang/OTP release, use a `seed/2` or `seed_s/2` to select
-both a specific algorithm and the seed value.
+In many API functions in this module, the atom `default` can be used
+instead of an algorithm name, and is currently an alias for `exsss`.
+In a future Erlang/OTP release this might be a different algorithm.
+The _default algorithm_ is selected to be one with high speed,
+small state and "good enough" statistical properties.
+
+If it is essential to reproduce the same PRNG sequence
+on a later Erlang/OTP release, use `seed/2` or `seed_s/2`
+to select *both* a specific algorithm and the seed value.
 
 #### Old Algorithms
 
@@ -956,7 +960,7 @@ that has been implemented *(Since OTP 24.0)*.
 > #### Note {: .info }
 >
 > Using `Alg = default` is *not* perfectly predictable since
-> which algorithm that is the default may change in a future
+>`default` may be an alias for a different algorithm in a future
 > OTP release.
 """.
 -doc(#{title => <<"Plug-in framework API">>,since => <<"OTP 18.0">>}).
@@ -985,7 +989,7 @@ that has been implemented *since OTP 24.0*.
 > #### Note {: .info }
 >
 > Using `Alg = default` is *not* perfectly predictable since
-> which algorithm that is the default may change in a future
+>`default` may be an alias for a different algorithm in a future
 > OTP release.
 """.
 -doc(#{title => <<"Plug-in framework API">>,since => <<"OTP 18.0">>}).
-- 
2.51.0

openSUSE Build Service is sponsored by