arc4random is a great interface on the BSD's, see e.g https://www.youtube.com/watch?v=aWmLWx8ut20 for details on it, and is thus preferred over /dev/random, /dev/urandom.
1/2 (the less controversial of the 2 patches) adds support for it whenever available naturally on the system. 2/2 adds support via libbsd, readily available on GNU/Linux systems. It is opt-in via an --enable-libbsd flag. Note that this may become obsolete once posix_random gets finalized and widespread. Patches untested on BSD since I lack it; only tested on GNU/Linux. Ganesh Ajjanagadde (2): avutil/random_seed: use arc4random() when available configure: libbsd support for arc4random() configure | 25 +++++++++++++++++++++++++ libavutil/random_seed.c | 9 +++++++++ 2 files changed, 34 insertions(+) -- 2.6.3 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel