[FFmpeg-devel] [PATCH] Make av_get_random_seed not block when waiting for more entropy
Martin Storsjö
martin
Tue Jun 29 14:33:12 CEST 2010
Hi,
I recently ran into a situation where av_get_random_seed() blocks for long
times if a machine is out of entropy. Since most (all?) uses of
av_get_random_seed() within ffmpeg don't really need full cryptographic
strength, using /dev/urandom instead of blocking while waiting for data
from /dev/random - the attached patch does this.
// Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-av_get_random_seed-not-block-when-waiting-for-m.patch
Type: text/x-diff
Size: 880 bytes
Desc:
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100629/54e742a3/attachment.patch>
More information about the ffmpeg-devel
mailing list