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

Michael Niedermayer michael at niedermayer.cc
Thu Jan 4 00:29:44 EET 2024


On Wed, Jan 03, 2024 at 07:36:00PM +0100, Michael Koch wrote:
> Possible better algorithm for the random generator, which might fix the
> problem:
> 
> eval.c  line 235
> 
> if (r == 0)
>   r = UINT64_MAX/13;
> else
>   r = r*1664525+1013904223;

This modifies the properties of the PRNG as it doesnt just change
the seed but jumps the generator from 0 to a differnt value, that
may happen more often than just at the start

posted a more correct fix for the low quality numbers

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20240103/dd54a799/attachment.sig>


More information about the ffmpeg-devel mailing list