Revision b0973124 libavutil/random.h

View differences:

libavutil/random.h
26 26

  
27 27
#define AV_RANDOM_N 624
28 28

  
29
#include "common.h"
30

  
29 31
typedef struct {
30 32
    unsigned int mt[AV_RANDOM_N]; ///< the array for the state vector
31 33
    int index; ///< Current untempered value we use as the base.
32 34
} AVRandomState;
33 35

  
34 36

  
35
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.
37
attribute_deprecated void av_init_random(unsigned int seed, AVRandomState *state);
38
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.
36 39
void av_random_generate_untempered_numbers(AVRandomState *state); ///< Regenerate the untempered numbers (must be done every 624 iterations, or it will loop).
37 40

  
38 41
/**

Also available in: Unified diff