[FFmpeg-devel] [PATCH 2/2] doc/utils/eval: clarify meaning of random* seed value

Stefano Sabatini stefasab at gmail.com
Mon Jan 1 21:38:59 EET 2024


Possible address trac issue:
http://trac.ffmpeg.org/ticket/10763
---
 doc/utils.texi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/doc/utils.texi b/doc/utils.texi
index ac9b63826e..554a07f057 100644
--- a/doc/utils.texi
+++ b/doc/utils.texi
@@ -944,11 +944,17 @@ Return a pseudo random value between 0.0 and 1.0. @var{idx} is the
 index of the internal variable which will be used to save the
 seed/state.
 
+The seed is represented as 64-bit unsigned integer. You can use a
+fraction of @code{UINT64_MAX} to initialize it.
+
 @item randomi(idx, min, max)
 Return a pseudo random value in the interval between @var{min} and
 @var{max}. @var{idx} is the index of the internal variable which will
 be used to save the seed/state.
 
+The seed is represented as 64-bit unsigned integer. You can use a
+fraction of @code{UINT64_MAX} to initialize it.
+
 @item root(expr, max)
 Find an input value for which the function represented by @var{expr}
 with argument @var{ld(0)} is 0 in the interval 0.. at var{max}.
-- 
2.34.1



More information about the ffmpeg-devel mailing list