History | View | Annotate | Download (2.16 KB)
Fix infinite loop with clock() returning (clock_t)-1.
Originally committed as revision 24116 to svn://svn.ffmpeg.org/ffmpeg/trunk
Change i to unsigned in get_generic_seed().This is clearer than comparing against an unsigned number to force an unsignedcomparison that we need.
Originally committed as revision 24114 to svn://svn.ffmpeg.org/ffmpeg/trunk
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
random_seed: simplify
Originally committed as revision 23932 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent
Originally committed as revision 23931 to svn://svn.ffmpeg.org/ffmpeg/trunk
random_seed: allow to block on /dev/random
If both /dev/random and /dev/urandom failed to return data, anuninitialised value might be returned. Since most systems have anon-blocking /dev/urandom or have /dev/random with similar properties,the chance of blocking is minimal, and the alternative of returning...
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
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 thenext major bump.
Originally committed as revision 23254 to svn://svn.ffmpeg.org/ffmpeg/trunk
indent
Originally committed as revision 22451 to svn://svn.ffmpeg.org/ffmpeg/trunk
random_seed: try other alternatives if reading /dev/random fails
Originally committed as revision 22450 to svn://svn.ffmpeg.org/ffmpeg/trunk
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