| Branch: | Revision:

ffmpeg / libavutil / random_seed.c @ 08675bb3

History | View | Annotate | Download (2 KB)

# Date Author Comment
10d2ae8c 04/21/2011 01:37 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    Makefile: Include dependencies for test tools, too
    Remove a version check in av_log made unnecessary by the big bump.
    update last major version increase dates in APIchanges
    Reduce picture size for yadif....
975c2734 04/19/2011 07:50 PM Anton Khirnov

lavu: remove disabled ff_random_get_seed cruft.

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

6a522c49 07/08/2010 06:13 PM Michael Niedermayer

Fix infinite loop with clock() returning (clock_t)-1.

Originally committed as revision 24116 to svn://

b65c1ccf 07/08/2010 05:49 PM Michael Niedermayer

Change i to unsigned in get_generic_seed().
This is clearer than comparing against an unsigned number to force an unsigned
comparison that we need.

Originally committed as revision 24114 to svn://

c84d5aa7 07/07/2010 11:47 PM Michael Niedermayer

get_generic_seed() for the cases without /dev/random and AV_READ_TIME

Originally committed as revision 24102 to svn://

16bfbfd0 07/01/2010 11:43 AM Måns Rullgård

random_seed: simplify

Originally committed as revision 23932 to svn://

9958096e 07/01/2010 11:40 AM Måns Rullgård


Originally committed as revision 23931 to svn://

b7fa5c5a 07/01/2010 11:40 AM Måns Rullgård

random_seed: allow to block on /dev/random

If both /dev/random and /dev/urandom failed to return data, an
uninitialised value might be returned. Since most systems have a
non-blocking /dev/urandom or have /dev/random with similar properties,
the chance of blocking is minimal, and the alternative of returning...

38e23c88 06/30/2010 10:38 AM Måns Rullgård

Make av_get_random_seed() non-blocking

Attempt to read from /dev/urandom and /dev/random with O_NONBLOCK set.
If neither succeeds, proceed with fallbacks.

Originally committed as revision 23903 to svn://

576fb48e 05/23/2010 08:53 AM Martin Storsjö

Make ff_random_get_seed public, rename to av_get_random_seed, export the header

Keep an old ff_ named function for binary compatibility until the
next major bump.

Originally committed as revision 23254 to svn://

5de91783 03/11/2010 02:32 AM Måns Rullgård


Originally committed as revision 22451 to svn://

49e92878 03/11/2010 02:32 AM Måns Rullgård

random_seed: try other alternatives if reading /dev/random fails

Originally committed as revision 22450 to svn://

48d58e59 03/08/2009 01:28 AM Baptiste Coudurier

add ff_random_get_seed to be used in conjunction with random functions

Originally committed as revision 17868 to svn://