[FFmpeg-trac] #10763(documentation:new): Improve documentation for random() expression

FFmpeg trac at avcodec.org
Fri Jan 19 13:03:10 EET 2024


#10763: Improve documentation for random() expression
-------------------------------------+-------------------------------------
             Reporter:  Michael      |                    Owner:  (none)
  Koch                               |
                 Type:  enhancement  |                   Status:  new
             Priority:  normal       |                Component:
                                     |  documentation
              Version:  git-master   |               Resolution:
             Keywords:  seed         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Michael Koch):

 This note might also be helpful:

 The random generator does always reproduce the same sequence of random
 numbers.
 If you want a different sequence each time FFmpeg is started, you can
 randomize the generator by using the realtime clock as seed:
 st(0,1e6*time(0));
 The factor 1e6 is required to make sure that multiple threads are
 initialized with different seed values. This factor can be omitted if the
 number of threads is limited to 1 with -filter_threads 1.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10763#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list