Commit ad9d7c6f authored by michael's avatar michael

1000l typo my new PRNG converged to -1.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14479 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent dc723c50
......@@ -48,7 +48,7 @@ static inline unsigned int av_lfg_get(AVLFG *c){
static inline unsigned int av_mlfg_get(AVLFG *c){
unsigned int a= c->state[(c->index-55) & 63];
unsigned int b= c->state[(c->index-24) & 63];
return c->state[c->index++ & 63] = a*b+a+b;
return c->state[c->index++ & 63] = 2*a*b+a+b;
}
#endif //FFMPEG_LFG_H
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment