aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/random.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-18 22:50:57 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-01-18 22:50:57 +0000
commitb0973124927d8ea5c8564abfd8f9c087696408e8 (patch)
tree5fea6e7b2168712516208df1d561f96a8a88bd80 /libavutil/random.h
parentef4c0bb1dcbd8438ec9a6126cd92e4b97d859217 (diff)
downloadffmpeg-b0973124927d8ea5c8564abfd8f9c087696408e8.tar.gz
Deprecate av_init_random() in favour of av_random_init(), with a more natural
name and order of parameters. Originally committed as revision 16679 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/random.h')
-rw-r--r--libavutil/random.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavutil/random.h b/libavutil/random.h
index f243676e7c..0bedcd5831 100644
--- a/libavutil/random.h
+++ b/libavutil/random.h
@@ -26,13 +26,16 @@
#define AV_RANDOM_N 624
+#include "common.h"
+
typedef struct {
unsigned int mt[AV_RANDOM_N]; ///< the array for the state vector
int index; ///< Current untempered value we use as the base.
} AVRandomState;
-void av_init_random(unsigned int seed, AVRandomState *state); ///< To be inlined, the struct must be visible. So it does not make sense to try and keep it opaque with malloc/free-like calls.
+attribute_deprecated void av_init_random(unsigned int seed, AVRandomState *state);
+void av_random_init(AVRandomState *state, unsigned int seed); ///< To be inlined, the struct must be visible. So it does not make sense to try and keep it opaque with malloc/free-like calls.
void av_random_generate_untempered_numbers(AVRandomState *state); ///< Regenerate the untempered numbers (must be done every 624 iterations, or it will loop).
/**