# HG changeset patch # User michael # Date 1217459861 0 # Node ID cdbdd48471aa4e1af5d00254571cba552d315fa9 # Parent 2862fa9da1102edfdffcbb54e9e9d95e5cc643de 1000l typo my new PRNG converged to -1. diff -r 2862fa9da110 -r cdbdd48471aa lfg.h --- a/lfg.h Wed Jul 30 23:08:07 2008 +0000 +++ b/lfg.h Wed Jul 30 23:17:41 2008 +0000 @@ -48,7 +48,7 @@ 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