Make av_get_random_seed() non-blocking
authorMåns Rullgård <mans@mansr.com>
Wed, 30 Jun 2010 10:38:04 +0000 (10:38 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 30 Jun 2010 10:38:04 +0000 (10:38 +0000)
commit38e23c88db9a6b1ce15a2eca431b824f65b214bc
treef503843071dfee90612b0ebb2f77803d93c34a95
parent534a2231f69638c3fdd998853ba4158ed79322a8
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
libavutil/random_seed.c