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

Michael Koch astroelectronic at t-online.de
Wed Jan 3 19:04:33 EET 2024


On one hand, it's good that the 10 variables for ld() and st() are 
initialized with zero.
But on the other hand, zero is obviously the worst possible seed value 
for the random generator.

For example, make a 1000x1000 image with red color, and then fill one 
pixel at a random position with yellow color. Surprise surprise, the 
pixel is in the top left corner. That's not what a user expects from a 
random generator. It took me some time to figure out what's the problem, 
and how to set a better seed value.

Michael



More information about the ffmpeg-devel mailing list