summaryrefslogtreecommitdiff
path: root/libavutil/random.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/random.c')
-rw-r--r--libavutil/random.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/random.c b/libavutil/random.c
index 9b5d1123c3..2f9dd5d3a4 100644
--- a/libavutil/random.c
+++ b/libavutil/random.c
@@ -55,10 +55,12 @@ void av_random_init(AVRandomState *state, unsigned int seed)
state->index= index; // will cause it to generate untempered numbers the first iteration
}
+#if LIBAVUTIL_VERSION_MAJOR < 50
void av_init_random(unsigned int seed, AVRandomState *state)
{
av_random_init(state, seed);
}
+#endif
/** generate AV_RANDOM_N words at one time (which will then be tempered later) (av_random calls this; you shouldn't) */
void av_random_generate_untempered_numbers(AVRandomState *state)