28 unsigned int state[64];
32 void av_lfg_init(
AVLFG *c,
unsigned int seed);
39 int av_lfg_init_from_data(
AVLFG *c,
const uint8_t *data,
unsigned int length);
47 static inline unsigned int av_lfg_get(
AVLFG *c){
48 c->state[c->index & 63] = c->state[(c->index-24) & 63] + c->state[(c->index-55) & 63];
49 return c->state[c->index++ & 63];
57 static inline unsigned int av_mlfg_get(
AVLFG *c){
58 unsigned int a= c->state[(c->index-55) & 63];
59 unsigned int b= c->state[(c->index-24) & 63];
60 return c->state[c->index++ & 63] = 2*a*b+a+b;
69 void av_bmg_get(
AVLFG *lfg,
double out[2]);