Statistics
| Branch: | Revision:

ffmpeg / libavutil / random_seed.c @ 490a022d

History | View | Annotate | Download (2.16 KB)

# Date Author Comment
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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

random_seed: simplify

Originally committed as revision 23932 to svn://svn.ffmpeg.org/ffmpeg/trunk

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

Reindent

Originally committed as revision 23931 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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

indent

Originally committed as revision 22451 to svn://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk

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://svn.ffmpeg.org/ffmpeg/trunk