If no platform specific random seed is supported then the generic code was tested twice, this is unneeded
Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> --- libavutil/random_seed.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c index 509b74936c..a8be2d4991 100644 --- a/libavutil/random_seed.c +++ b/libavutil/random_seed.c @@ -141,5 +141,11 @@ uint32_t av_get_random_seed(void) return seed; if (read_random(&seed, "/dev/random") == sizeof(seed)) return seed; +#if TEST + { // for testing we test get_generic_seed() seperatly so doing it here too is a waste of time + static int x; + return x++; + } +#endif return get_generic_seed(); } -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".