[FFmpeg-devel] [PATCH] Make av_get_random_seed not block when waiting for more entropy

Mike Scheutzow mike.scheutzow
Tue Jun 29 20:33:51 CEST 2010

M?ns Rullg?rd wrote:
>>> Attempt to read from /dev/urandom and /dev/random with O_NONBLOCK set.
>>> If neither succeeds, proceed with fallbacks.
>> In general, this looks like an even better alternative. Neither fcntl, 
>> F_SETFL, F_GETFL nor O_NONBLOCK are available on windows, though, so they 
>> need to be hidden within some kind of ifdef.
> Cygwin should have them, mingw might not.
> Do /dev/[u]random exist on cygwin/mingw?

Yes, both /dev/random and /dev/urandom seem to return something in 
cygwin 1.7.

Mike Scheutzow

More information about the ffmpeg-devel mailing list