Revision e80d4741

View differences:

libavutil/random.h
35 35
void av_init_random(unsigned int seed, AVRandomState *state); ///< to be inlined, the struct must be visible, so it doesn't make sense to try and keep it opaque with malloc/free like calls
36 36
void av_random_generate_untempered_numbers(AVRandomState *state); ///< Regenerate the untempered numbers (must be done every 624 iterations, or it will loop)
37 37

  
38
/** generates a random number on [0,0xffffffff]-interval */
38
/**
39
 * generates a random number on [0,0xffffffff]-interval
40
 *
41
 * Please do NOT use the mersenne twister, it is slow, use the random generator
42
 * from lfg.c/h or a simple LCG like state= state*1664525+1013904223.
43
 * If you still choose to use MT, expect that you will have to provide
44
 * some evidence that it makes a difference for the case where you use it.
45
 */
39 46
static inline unsigned int av_random(AVRandomState *state)
40 47
{
41 48
    unsigned int y;

Also available in: Unified diff