[FFmpeg-devel] [PATCH] Make av_get_random_seed not block when waiting for more entropy
Måns Rullgård
mans
Thu Jul 1 13:44:29 CEST 2010
Michael Niedermayer <michaelni at gmx.at> writes:
> 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
OK, I've made the reads blocking again.
Now then, what do we do if no random device or AV_READ_TIME exists?
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list