[FFmpeg-devel] [PATCH] Make av_get_random_seed not block when waiting for more entropy
Michael Niedermayer
michaelni
Thu Jul 1 12:35:55 CEST 2010
On Thu, Jul 01, 2010 at 01:02:08AM +0100, M?ns Rullg?rd wrote:
> Michael Niedermayer <michaelni at gmx.at> writes:
>
> >> There are systems, many in fact, without /dev/[u]random or
> >> AV_READ_TIME.
> >
> > yes but the question was about blocking /dev/random and non existing
> > /dev/urandom at the same time. (or a unrealistic blocking
> > /dev/urandom)
> >
> > open(/dev/urandom)
> > if(fail)
> > open(/dev/random)
> > read()
> >
> > is sufficient if such system does not exist
>
> Fine, let's dig.
thanks
from what i understand the code suggested above should work or am i missing
something. Some of the documentation quoted is somewhat vague
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100701/5e19a042/attachment.pgp>
More information about the ffmpeg-devel
mailing list