Revision b0973124 libavutil/random.c

View differences:

libavutil/random.c
36 36
#define LOWER_MASK 0x7fffffff /* least significant r bits */
37 37

  
38 38
/** initializes mt[AV_RANDOM_N] with a seed */
39
void av_init_random(unsigned int seed, AVRandomState *state)
39
void av_random_init(AVRandomState *state, unsigned int seed)
40 40
{
41 41
    int index;
42 42

  
......
55 55
    state->index= index; // will cause it to generate untempered numbers the first iteration
56 56
}
57 57

  
58
void av_init_random(unsigned int seed, AVRandomState *state)
59
{
60
    av_random_init(state, seed);
61
}
62

  
58 63
/** generate AV_RANDOM_N words at one time (which will then be tempered later) (av_random calls this; you shouldn't) */
59 64
void av_random_generate_untempered_numbers(AVRandomState *state)
60 65
{

Also available in: Unified diff