[Ffmpeg-devel] [RFC] av_random...

Michael Niedermayer michaelni
Tue Jan 9 23:47:27 CET 2007


On Tue, Jan 09, 2007 at 04:03:21PM -0600, Ryan Martell wrote:
> For the record, the timing units I sent before were only timing the  
> generate_untempered function, since it's only called every  
> AV_RANDOM_N times av_random is called.
> Final question: typically, I use time(NULL) to initialize the seeds  
> of a random number generator.  Since ffmpeg says don't use time 
> (NULL), what's the best pseodo-random seed generator to use?

0 should do

and the code looks ok (except the missing Makefile patch)


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070109/47f29420/attachment.pgp>

More information about the ffmpeg-devel mailing list