« Previous | Next » 

Revision b7fa5c5a

IDb7fa5c5abb39f819fbb42253711bc13e5cac0e81
Parent a158446b
Child 9958096e

Added by Måns Rullgård almost 11 years ago

random_seed: allow to block on /dev/random

If both /dev/random and /dev/urandom failed to return data, an
uninitialised value might be returned. Since most systems have a
non-blocking /dev/urandom or have /dev/random with similar properties,
the chance of blocking is minimal, and the alternative of returning
non-random data is worse.

Originally committed as revision 23930 to svn://svn.ffmpeg.org/ffmpeg/trunk

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences