| Branch: | Revision:

ffmpeg / libavutil / random_seed.c @ 9958096e

History | View | Annotate | Download (1.64 KB)

# Date Author Comment
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://