summaryrefslogtreecommitdiff
path: root/libavutil/random_seed.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-05-23 08:53:40 +0000
committerMartin Storsjö <martin@martin.st>2010-05-23 08:53:40 +0000
commit576fb48e6dc8c75ece42fa7ede40f19de708b3f3 (patch)
treef24887f4646860a737908f5abbc504a04f671397 /libavutil/random_seed.c
parente1745e2f6e839a91d5e9347b6dfe7685622b9fb4 (diff)
Make ff_random_get_seed public, rename to av_get_random_seed, export the header
Keep an old ff_ named function for binary compatibility until the next major bump. Originally committed as revision 23254 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/random_seed.c')
-rw-r--r--libavutil/random_seed.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libavutil/random_seed.c b/libavutil/random_seed.c
index 236cadd21b..00d6317241 100644
--- a/libavutil/random_seed.c
+++ b/libavutil/random_seed.c
@@ -22,8 +22,9 @@
#include <fcntl.h>
#include "timer.h"
#include "random_seed.h"
+#include "avutil.h"
-uint32_t ff_random_get_seed(void)
+uint32_t av_get_random_seed(void)
{
uint32_t seed;
int fd;
@@ -42,3 +43,11 @@ uint32_t ff_random_get_seed(void)
// XXX what to do ?
return seed;
}
+
+#if LIBAVUTIL_VERSION_MAJOR < 51
+attribute_deprecated uint32_t ff_random_get_seed(void);
+uint32_t ff_random_get_seed(void)
+{
+ return av_get_random_seed();
+}
+#endif